效果图
1.实现QCheckBox控件
layoutDerection属性可以设置checkBox的打√在左边还是右边
//整体checkbox设置
QCheckBox{
border-image: url(:/src/image_icon/Rectangle 1621.png);
color:white;
}
QCheckBox:unchecked{
border-image: url(:/src/image_icon/Rectangle 1621.png);
}
QCheckBox:checked{
border-image: url(:/src/image_icon/Rectangle 1622.png);
}
//checkbox 打“√” 区域的设置
QCheckBox::indicator {
border-image: url(:/src/image_icon/Group 744.png);
Width:39px;
Height:39px;
}
QCheckBox::indicator:unchecked{
border-image: url(: