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. Can Anyone pls explain me the control flow in QT quick controls application.

Can Anyone pls explain me the control flow in QT quick controls application.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 946 Views 1 Watching
  • 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.
  • Akshay SinghA Offline
    Akshay SinghA Offline
    Akshay Singh
    wrote on last edited by Akshay Singh
    #1

    Just Started learning this topic.
    Wants to get a clear view on what loads first??
    Qml page or main() function of c++ file.

    If c++ load first with control to main() function then, which class and function is used to tell the compiler or application to load qml pages?

    (As in QWidget application.for example-> window.show() is used to start the Widget procedure.)

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      Qt program is always a C++ program and always starts with main(). QML works in a runtime engine written in C++. See a main() function of some example project:

      QQmlApplicationEngine engine;
      engine.load(QUrl("qrc:/main.qml"));
      return app.exec();
      

      The UI (the object structrure declared in main.qml etc.) is built in the loading phase and each component's Component.onCompleted is run. But not before app.exec() is called the signals/slot connections, state machines etc. start actually working and the user can interact with the QML Quick interface. I don't know when the UI painted.

      1 Reply Last reply
      0
      • Akshay SinghA Offline
        Akshay SinghA Offline
        Akshay Singh
        wrote on last edited by
        #3

        Okay,,,,thanks ,that helped me a lot for learning the start.

        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