I wanted to know if its possible to display an image instead of text in QGroupBox I want to achieve the following style
Any suggestions ?
http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qgroupbox
You could try something like:
groupBox->setStyleSheet(
"QGroupBox::indicator {"
"width: 13px;"
"height: 13px;"
"}"
"QGroupBox::indicator:unchecked {"
"image: url(:/images/checkbox_unchecked.png);"
"}"
);
Hope that helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.