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

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

XMLWordPrintable

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

      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.

        1. menu_arrow_disabled.png
          menu_arrow_disabled.png
          51 kB
        2. mainwindow.h
          3 kB
        3. mainwindow.cpp
          13 kB
        4. main.cpp
          3 kB
        5. application.qrc
          0.3 kB
        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
            racoon racoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes