The size of QPushButton breaks layout height (MacOS)
-
Lets consider situation with QFormLayout. For example need to add button to the layout row:
!http://piccy.info/view3/7227575/935007f4b0e125cd8986fb5915403063/(layout)!
(http://piccy.info/view3/7227575/935007f4b0e125cd8986fb5915403063/)As you see the height of layout with button is bigger than height of other rows. This is because the own height of the button is bigger than height of the line editor - there is empty space around the button:
!http://piccy.info/view3/7227612/9fd2b09800690208f7bd76fb5c780107/(button)!
(http://piccy.info/view3/7227612/9fd2b09800690208f7bd76fb5c780107/)In result all layouts with QPushButton becomes broken. Even in standard dialogs (QMessageBox) there are big margins around buttons in the bottom of the window.
As I know this issue is relevant only for MacOs.
-
Hi,
What version of OS X are you running ? Also which version of Qt are you using ?