Important: Please read the Qt Code of Conduct -

[SOLVED]createqmlobject vs loader

  • Hi,

    As per my understandings, createqmlobject/createobject and loader to load dynamic objects.

    What are the advantages with createqmlobject over loader?


  • Hmm, Loader make the whole job for you.

    • check if the item load is finish and create and display the object
    • you can set properties and signals directly on the loader, it handle everything for you

    createqmlobject make it possible to create the things within Javascript but you need to manage everything by your script or in your loaded component.

    I think there is no really advantages maybe if you use Loader then you have one nesting level more because the loaded component is a child of Loader.

  • Please mark thread as solved if it's done thx

Log in to reply