資源簡介
最近由于項目需要,在軟件上畫一個組合按鈕實現搖桿的功能,以控制機器人移動的方向,詳情見:https://blog.csdn.net/yu_20501253/article/details/90438680
代碼片段和文件信息
#include?“CustomButton.h“
#include?
#include?
#include?
#include?
#include?
#include?
CustomButton::CustomButton(QWidget*?parent)
????:?QWidget(parent)
?????m_pressIndex(0)
?????m_enterIndex(0)
?????m_isMouseEntered(false)
?????m_isMousePressed(false)
?????m_radius(80)
?????m_arcLength(55)
?????mCenterRound(QPoint(00))
{
????m_bTextModeEn?=?false;
????this->setMouseTracking(true);
????mSectorColor?=?QColor(383838);
????initButton();
????setWidgetstyle(“Dark“);
????setAxesVertical(false);
}
void?CustomButton::setWidgetstyle(QString?style)
{
????if(style?==?“Bright“){
????????mSectorColor?=?QColor(238241240);
????????colorSPL?=?QColor(63155178);
????????colorBKG?=?QColor(193?199
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3145??2019-04-25?16:16??CustomButton.h
?????文件??????18200??2019-04-29?14:15??CustomButton.cpp
-----------?---------??----------?-----??----
????????????????21345????????????????????2
- 上一篇:dxf參考手冊.chm
- 下一篇:用鏈表做的的商品管理系統
評論
共有 條評論