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

[macOS] Labs platform context menu items are disabled on modal window

    XMLWordPrintable

Details

    • macOS
    • 2bdaf28034541cd57b0aa7c067fda8cfbffa0e94 (qt/qtbase/dev) 3a02e83e51452bd67a5846acfaeaf433be40abda (qt/qtbase/6.1) 6718bdc88c254b64cecce1cf26dbac3865bf0fdd (qt/qtbase/6.0) 1ac731f5672e2613fab213e496f522f44810776d (qt/tqtc-qtbase/5.15)
    • Bug Fixing Candidates

    Description

      After QTBUG-80273 fix, If you're trying to create a context menu using Qt labs platform menus on modal windows, all menu items will be disabled. Bug occurs in Qt 5.15.0 (5.14.2 works as expected).

      It is happening, cause patch has a check for a menubar. Context menu doesn't belong to the menubar, so menu items become disabled.

      Workaround for that: you can add a context menu to a menu bar and hide (menu.visible = false). But it is quite tricky in some cases.

      Attachments

        Activity

          People

            vhilshei Volker Hilsheimer
            headhunter Roman Lazurak
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: