::indicator 是Qt 支持的 辅助控制器
2楼所说的不正确
QCheckBox::indicator ,QRadioButton::indicator
{
width: 20px;
height: 20px;
}
QCheckBox, QRadioButton
{
spacing: 8px;
}
上面的意思是 增加复选框 和 单选框 的状态指示器 的大小 为 20*20像素 ,并 确保 指示器和说明文字之间有 8像素的间 隔
节选自《c++ GUI Qt 4 编程》第二版 第19章: 自定义外观 第332页
但是我编译不过去