Priority: P2: Important
Affects Version/s: 5.6.3, 5.9.7, 5.12.0 RC2
Fix Version/s: None
Component/s: Widgets: Main Window
This problem exists since Qt 4. Qt 3 was ok.
I have a toolbar with one visible button/action and some invisible separators or invisible buttons/actions. The minimum size is too high, because the size of the extension is added. I think, that the space for the extension should only be added, when more than one item is visible.
if (items.count() > 1)
rpick(o, that->minSize) += spacing + extensionExtent;
if (count > 1)
count is the number of visible items. The number of invisible items doesn't matter.