feat: The custom control MySwitchButton has been implemented

This commit is contained in:
xmuli
2020-03-28 17:33:20 +08:00
parent 7548546060
commit 17dc1f5d42
19 changed files with 5 additions and 884 deletions

View File

@@ -67,7 +67,7 @@ void MySwitchButtonPrivate::init()
check = false;
q->setObjectName("MySwitchButton");
q->setChecked(true);
q->setCheckable(true); //clicked toggled douxuyaokauqi
q->setCheckable(true); //clicked toggled 都需要开启
q->connect(q, SIGNAL(clicked(bool)), q, SLOT(setChecked(bool)));
}