Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Scene2D spawned by NodeInstantiator does not execute propertyUpdated method (no mouse events)

Scene2D spawned by NodeInstantiator does not execute propertyUpdated method (no mouse events)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 173 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    technobaboo
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved