[Qt]自定義控件之開關控件

最近在Qt自定義一個開關控件,支持滑動,留存備用ide 源代碼:this #include "switchcontrol.h" SwitchControl::SwitchControl(QWidget *parent): QWidget(parent) { setMouseTracking(true); //OFF背景色 m_offbkcolor1 = QColor(2
相關文章
相關標籤/搜索