QPushButton can be smaller than the size of its text in dark or dark orange style
photoniker opened this issue · 0 comments
This issue is referred to this issue: ColinDuquesnoy/QDarkStyleSheet#194
However the problem of setting the min-width attribute of QPushButton is that no minimum size calculation is done any more based on the current content, since it is overwritten by the fix min-width value.
This might be a good idea for buttons with a very small text (like OK), however it is not so good for buttons whose text is larger
than 80px (current value for min-width.
We need to decide if we want to keep min-width, such that very small buttons are still clickable or if we would need to set the
minimumSize property of buttons with larger texts to avoid that it can be shrinked to a smaller size.
This is how it would be without min-width:
The current version with min-width = 80px looks like this:
If min-width should be removed, the value min-width of QPushButton in the qss stylesheet files have to be removed.
[Issue created by M. Gronle: 2020-10-09]
[Last updated on bitbucket: 2022-07-08]
[Comment created by Bernd Bertschinger: 2022-07-08]
Issue seems to be fixed in v.4.2.0