Scene2D spawned by NodeInstantiator does not execute propertyUpdated method (no mouse events)
Unsolved
QML and Qt Quick
-
NodeInstantiator:
NodeInstantiator { model: shellSurfaces Panel { id:panel shellSurf: modelData listIndex: index } }
Panel.qml:
Entity { ... id:panel components: [panelTransform, planeMesh, material, panelPicker] ... Scene2D { id: waylandScene output: RenderTargetOutput { ... } mouseEnabled: true entities: [parent] ShellSurfaceItem { ... } } ... }
I have debugged it and figured out that Scene2D's entities is not being updated, therefore the pick handler is not registered, meaning no mouse events can be forwarded. This happens regardless of what item is inside the Scene2D. I've already tried to set the entities property later using
Component.onComplete
on the Scene2D with no luck...