osx - The size of QPushButton breaks layout height (MacOS) -
Consider the situation with QFormLayout. For example, the button needs to add buttons to the layout row:
As you see, the height of the layout with the button is greater than the height of the other rows, because the height of the button is higher than the editor's height - the space around the button is:
As a result all layout with QPushButton gets broken. In the standard dialogue (QMessageBox) there are large margins around the button in the bottom of the window.
As I know that this problem is only relevant to MacOs there are some similar issues and, but there is no answer to what is the shape of QPushButton on Mac, and how to fix it correctly. IMO is the problem with this margin (changing the margins) used with different style (used on OSX)
Try typing it by setting a style sheet:
pushbutton-> setStyleSheet ("QPushButton {\ n" "margin: 2px; \ n" "} \ N ")
Comments
Post a Comment