[Interest] QPushButton creates empty space on Mac OS X resulting in ugly layouts

Sven Grunewaldt strayer at olle-orks.org
Sun Sep 1 18:14:12 CEST 2013


I recently moved to Mac OS X and noticed that the Dialogs in one of my
applications look kind of strange... I have several Dialogs that are
basically a simple form that has configurable paths:

Label: <QLineEdit> <QPushButton (opens file dialog)>
Label: ...

The Dialog is organized in a QGridLayout, it looks fine on Ubuntu:
https://dl.dropboxusercontent.com/u/256059/software/berichte-ork/dialog-ubuntu.png

On Mac OS X there is a big empty space below the QPushButtons row which
makes the whole thing look strange:
https://dl.dropboxusercontent.com/u/256059/software/berichte-ork/dialog-osx.png

I found this bug report which was apparently silently closed:
https://bugreports.qt-project.org/browse/QTBUG-2699

Is there any way to fix this?

Thanks,
Sven Grunewaldt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dialog-ubuntu.png
Type: image/png
Size: 40331 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130901/4dce2334/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dialog-osx.png
Type: image/png
Size: 52747 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130901/4dce2334/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdfExport.ui
Type: text/xml
Size: 5194 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130901/4dce2334/attachment.xml>


More information about the Interest mailing list