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

Component.onCompleted

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 343 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.
  • M Offline
    M Offline
    Madesh R
    wrote on last edited by
    #1

    Hi ,
    I'm creating QML components using Javascript.(createComponent & createObject calls).
    Once a particular component is created, trying to call other function.

    But the 1st component creation is consuming some time(1/2 sec), due to which even before the component is created , the second call is executing and it's functionalities are handled

    ex:
    I have component1.qml -> creating via javacript method.
    inside of this file , i do have
    Component.onCompleted:{

    create Component2.qml
    }

    Here Even before compoent1.QML is completely loaded on Target machine(Display board), compoent2 is created and it's functionalities such as mouse click are handled. Is there alternative to do this job.

    I have to create component2 , only if component1 is completely created and loaded.

    Thank you.

    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