QPushButton can be smaller than the size of its text in dark or dark orange style

Create issue
Issue #151 new
M. Gronle created an issue

This issue is referred to this issue: https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/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.

Comments (0)

  1. Log in to comment