Increase check box size not its text using QCheckbox?

前端 未结 3 1930
自闭症患者
自闭症患者 2021-01-07 21:08

How do I increase the size of the check box for the QCheckBox control and not the text size?

Thanks.

3条回答
  •  终归单人心
    2021-01-07 21:20

    I used this:

    eyeChk = new QCheckBox("Eyes:");
    
    _eyeChk->setStyleSheet("QCheckBox::indicator { width:150px; height: 150px;} QCheckBox::indicator::checked {image: url(/home/jvdglind/Downloads/280px-PNG_transparency_demonstration_2.png);}");
    

    And just found sound decent default checkbox images.

提交回复
热议问题