Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.3, 6.7.2, 6.8.0 Beta3
Description
Platform MenuBar can't be hidden/unloaded after creation via Loader.
Sample code:
import QtQuick import QtQuick.Controls import Qt.labs.platform as Platform Window { width: 640 height: 480 visible: true Loader { id: menuBarLoader active: false sourceComponent: Platform.MenuBar { Platform.Menu { title: 'Menu1' Platform.MenuItem { text: "Action1..." } } Platform.Menu { title: 'Menu2' Platform.MenuItem { text: "Action2..." } } Platform.Menu { title: 'Menu3' Platform.MenuItem { text: "Action3..." } } } } Button { text: menuBarLoader.active ? 'Hide MenuBar' : 'Show MenuBar' onClicked: menuBarLoader.active = !menuBarLoader.active } }
Attachments
Issue Links
- relates to
-
QTBUG-116903 [REG 6.5.0-6.5.2][macOS] Emoji edit menu items are not visible in a specific case
- Closed