Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126209

QToolBar method to enable tooltips in extension pop-up menu

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.7.1
    • None

      QToolBar can produce an extension menu if there are too many actions to be displayed in the available menu.

      That extension button creates a pop-up menu as a default QMenu. By default, QMenus have the toolTipsVisible property set to false. That means that if QActions are added to the QToolBar with tooltips, the tooltips will not be visible when the actions are present in the extension menu. Tooltips for the same actions are present when viewable normally because there is enough space.

      It would be handy to have a method to QToolBar to set a property so that the extension pop-up menu was created with toolTipsVisible. Or, perhaps it could be set to true by default, since what is displayed in it are QActions that have their tool tips visible when the space for the QToolBar accommodates them normally.

      The QToolbarLayout class is not part of the public API and exists as an internal implementation detail, so subclassing it in order to override the method is not reliable.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            johnthacker John Thacker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes