The BookmarksToolbar layout size is calculated correctly at the c-tor (exactly as in QToolBarLayout::updateMarginAndSpacing) but, in BookmarksToolbar::addItem, the widget height is set to the following fixed value, without taking the margins into account:
The
BookmarksToolbar
layout size is calculated correctly at the c-tor (exactly as inQToolBarLayout::updateMarginAndSpacing
) but, inBookmarksToolbar::addItem
, the widget height is set to the following fixed value, without taking the margins into account:That could result in truncated icons/texts when, for example:
PM_ToolBarItemMargin = 5 PM_ToolBarFrameWidth = 5 PM_ToolBarItemSpacing = 2
Please note that the above values are set by the style plugin.