Re: QGroupBox title position
On what platform and with what style? The Windows, WindowsVista, and Cleanlooks styles al produce a checkable group box that looks like that by default.
1 Attachment(s)
Re: QGroupBox title position
Chris,
Thanks for your reply. I am running on windows 8, I believe with the default style, and I found that I had to specify that the border be visible. The default seemed to be a QGroupBox with an invisible border.
Here's my current style sheet, and I've attached a picture of the results I am seeing at the moment.
setStyleSheet("QGroupBox { background-color: transparent; border: 1px solid gray; border-radius: 5px; }");
Thanks for your help.
Re: QGroupBox title position
I've noticed a lot of Windows 8-isms with my application-in-build and Qt 4.8.4. The handles on splitters, for example, are completely absent visually (but functional). You may find some of these go away in later Qt5 point releases.
Have a look at Customizing QGroupBox. You can target the ::title sub-control and fiddle with its subcontrol-origin and related properties.
Re: QGroupBox title position
@Chris,
I'm using 5.0.2. If you are right, should I be trying to report this as a bug?