图片开关新增选中切换信号

This commit is contained in:
feiyangqingyun
2022-04-28 08:36:11 +08:00
parent b2c999dd83
commit 293a8d9c40
4 changed files with 19 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ void ImageSwitch::mousePressEvent(QMouseEvent *)
{
imgFile = isChecked ? imgOffFile : imgOnFile;
isChecked = !isChecked;
emit checkedChanged(isChecked);
this->update();
}