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

QToolButton with popupMode QToolButton::MenuButtonPopup has inaccessible menu when defaultAction disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12, 5.14.2
    • None

    Description

      The menu of a QToolButton with with popupMode QToolButton::MenuButtonPopup becomes inaccessible when its defaultAction is disabled. Instead only the button part but not the menu part should become disabled. A common function the popup menu is used for is to subsume toolbar functions under the menu to leave more space for other buttons on the toolbar. This is standard behaviour in other common application, e.g. MS Word.

      Attachments

        1. application.qrc
          0.3 kB
        2. main.cpp
          3 kB
        3. mainwindow.cpp
          13 kB
        4. mainwindow.h
          3 kB
        5. menu_arrow_disabled.png
          menu_arrow_disabled.png
          51 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            racoon racoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes