Vladimir Prus wrote:

>> Personally, I'm quite comfortable with this small extra spacer. Are
>> you?
> 
> Maybe, you can just copy-paste KDE code?
> 
>    void KToolBar::setFullSize(bool flag )
>    {
>       setHorizontalStretchable( flag );
>       setVerticalStretchable( flag );
>    }

Oops, replying to myself -- that would make the toolbar wide enough, but
break spacing of buttons. So unless you want to copy KDE's code for buttons
and spacers, I'm not sure what you can do. Placing a zero-size expanding
QWidget on the toolbar does not work either -- it's rendered in a different
color from toolbar. And deriving from QToolButton and overriding the
sizeHint/minimumSizeHint method to return (0, 0) don't work either --
there's the same extra space. 

Looks like your approach is the only one.

- Volodya

Reply via email to