Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
Description
When creating a menu like so:
Menu { id: m popupType: Popup.Native MenuItem { text: "Item 1" } MenuItem { visible: false text: "Item 2" } MenuItem { text: "Item 3" } }
The native menu on macOS will not hide that entry:
If you switch the popup type to Popup.Window, the entry will be invisible, but still take up space:
(Also the menu is bigger for some reason)
I primarily noticed this on macOS, but the problem with Popup.Window seems to apply to all platforms. This prevents me from migrating away from the labs menus to the native menus in Quick.Controls.
I would expect hidden menu items to not show up in the menu at all and this works for the labs menus.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-130996 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
605053,9 | MenuItem: respect visible property for native menu items | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |