QSS实践汇总(7)——QCheckBox、QRadioButton样式(风格)

一、QCheckBox风格

QCheckBox

{

font-size:14px;

}

QCheckBox::indicator:unchecked{

image:url(:/commonImg/Resources/image/common/cbxUnCheckedY.png);

}

QCheckBox::indicator:checked{

image:url(:/commonImg/Resources/image/common/cbxCheckedY.png);

}

二、QRadioButton风格

QRadioButton{

font-size:12px;

font-family:"NSimSun";

color:rgb(220,220,220);

}

QRadioButton::hover{

color:rgb(19,154,230);

}

QRadioButton::indicator{

border-image:url(:/commonImg/Resources/image/common/radioUnCheckedY.png);

}

QRadioButton::indicator:checked{

border-image:url(:/commonImg/Resources/image/common/radioCheckedY.png);

}

你可能感兴趣的:(qt)