QDockWidgets Titlebar have giant toolbars on Mac
thomasaarholt opened this issue · 10 comments
Could you try the style edit PR ( #133 ), and enter the following in the style editor:
QDockWidget::title {
padding: 0px; /* try varying this number */
}
The padding can also be 0px 5px
for different padding horz/vert or 4 values for left/right/top/bottom (not sure about order).
See comments to #133
QDockWidget::title {
padding: 10px; /* try varying this number */
}
is the minimum padding size I can specify. Will try to play max/min.
padding: 20
works, without the px
ending.
Padding seems to be dependent only on the first number, see example and comment below:
QDockWidget::title {
padding: 10px 20px 30px 40px; /* All just 10*/
}
Edit:
On further testing, only padding-top
has any effect, so it seems like all other paddings are "turned off". Negative values have no effect.
Does the other paddings work if you replace the icons?
Will try tonight.
Making the button image change on hover is difficult (probably a bug), but there is a workaround:
http://stackoverflow.com/questions/32145080/qdockwidget-float-close-button-hover-images