qtqcheckbox

How to resize a QCheckbox and not its text


I have created a QCheckbox called override.

I want to change the size of the actual checkbox, not the font of the text associated with it.

Is there a way of doing this?


Solution

  • 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.