Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.7.0
-
None
-
Windows 10
Description
When you dynamically create MenuItem instances you get the following warning at runtime: QQmlComponent: Created graphical object was not placed in the graphics scene.
Sample code:
Menu { id: menu Component.onCompleted: { for (var i = 0; i < 5; i ++) { var menuItem = menuItemComponent.createObject(menu) menu.addItem(menuItem) } } Component { id: menuItemComponent MenuItem { text: "Menu Item" } } }
Attachments
Issue Links
- relates to
-
QTBUG-54767 Qt.Quick.Controls 2.0 MenuItem appears even when visible:false
- Open