Lets consider situation with QFormLayout. For example need to add button to the layout row:
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:
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. There are some similar issues here and here, but there is no answer why QPushButton on Mac has such size, and how to fix this properly.