Change the size of ">>" arrow when a QToolBar is too small

  • In my application I have a toolbar and set of buttons. My toolbar size is small and hence >> extension button appears. Pressing the extension buttons shows all the items. But the size of the >> extension button is very small and it is difficult to operate with out a mouse.

    Is it possible to change the size of the >> extension button in the Toolbar?

  • Moderators

    the width of this button can only be changed by QStyle instances.
    So you need to subclass QProxyStyle.

    virtual int MyProxyStyle::pixelMetric(PixelMetric pm, const QStyleOption* option, const QWidget* widget) const
      if( pm == QStyle::PM_ToolBarExtensionExtent ) 
         return XXX; // width for horizontal, height for vertical toolbars
      return QProxyStyle::pixelMetric(pm, option, widget);

  • @raven-worx

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.