PDA

View Full Version : Problem in increasing Chekbox indicator size.



Niamita
22nd June 2012, 06:40
Hi
i try to increase checkbox indicator height and width through stylesheet but it does not get. If i use image then it happen but i do not want to use image for indicator.

code i am using


QCheckBox::indicator {
width: 20px;
height: 20px;
}

Thanks

ChrisW67
22nd June 2012, 07:24
Works fine here:


#include <QtGui>
#include <QDebug>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QCheckBox c("Test resized");
c.setStyleSheet("QCheckBox::indicator { width: 32px; height: 32px; } ");
c.show();

QCheckBox d("Test Default");
d.show();

return app.exec();
}


Where are you applying the style sheet?

Niamita
22nd June 2012, 08:15
By doing this checkbox indicator box not increases.