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 Page is slower to load the first time. Why?
Qt 6.11 is out! See what's new in the release blog

Component Page is slower to load the first time. Why?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 436 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.
  • A Offline
    A Offline
    Ankit.Jain
    wrote on last edited by Ankit.Jain
    #1

    I currently have a code base for the display of an electric appliance which uses multiple pages. The pages are loaded dynamically as and when required. When the user turns off the power from mains, the UI is booted again; while powering it off uses the UI doesn't.

    Now what I observed was that after booting the device (by powering the device off and then on from mains), then the loading of a particular page is really slow. But when I turn it off and on from the UI, the page loads really fast.

    I checked the code to find that the object is destroyed on powering the UI off. I feel like I'm missing something here. Any opinions?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Can it be first time, you also see the load times from the Qt so/dlls ?

      A 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Can it be first time, you also see the load times from the Qt so/dlls ?

        A Offline
        A Offline
        Ankit.Jain
        wrote on last edited by
        #3

        @mrjj No, I'm pretty sure that the Qt object are already loaded. The "main.cpp" file creates all of them before the UI is initialized.

        I forgot to mention; the UI is originally in "init" state; here all qml objects in main.qml have been initialized (and as main.cpp creates all C++ classes before qml stuff is started; C++ classes are also created). Then we go to second state where the page in question is loaded.

        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