[Interest] Undesired space added in Mac style UI rendering

John Weeks john at wavemetrics.com
Mon Nov 4 20:26:07 CET 2013


Agh... once again, I forgot to direct my answer to the list.


Well, I'm not sure of the solution, but the extra space appears to be coming from the checkbox used as the groupbox title. In your screen shots, the checkbox text is the same size as the other groupbox titles, on my Macintosh running 10.6.8 (out of date...) the checkbox text is actually larger than the other titles.

This seems like a bug in the Macintosh style; on my machine the checkmark (which extends beyond the checkmark box) is truncated. At the very least, it seems like the gap should be filled in with the groupbox background. Also, if I set the palettes to the default, the background appears to fill the space better. It looks like the Macintosh style is not measuring the space required for the checkbox correctly in all parts of its code.

You might try setting QWidget:: setAttribute(Qt::WA_MacSmallSize) or  setAttribute(Qt::WA_MacMiniSize). I haven't found a way to set these attributes other than in code. It would be nice if there were an obvious way to set them in Designer.

-John Weeks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131104/9548ff4a/attachment.html>


More information about the Interest mailing list