Why does refferencing by ID kill everything



  • Hello guys,
    There is a question I have not found explamation on.
    If a SuperComponent has property Component style
    and when I instance

    ContainerComponent
    {
       SuperComponent 
       {
       style: StyleComponent {} //everything works
       }
    }
    

    But if I do something like this:

    ContainerComponent
    {
       SuperComponent 
       {
          style: styleComponentId //errors
       }
    
       StyleComponent 
       {
          id: styleComponentId
       }
    }
    

    How does referencing by id work?
    And is id refferencing the same as direct linking in QML?



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.