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. Loader element and CommonDialog element
QtWS: Super Early Bird Tickets Available!

Loader element and CommonDialog element

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.0k 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.
  • O Offline
    O Offline
    owenzhao
    wrote on last edited by
    #1

    I am trying to speed up my qml page loading. Currently I have some(3 or 4) CommonDialog in my MainPage. I use CommonDialog.open() when I need them. However, since I am concerning the loading speed of my app, is that better to turn the dialogs to components and using a loader when I need them.
    My worry is that I am not sure if it is necessary. In my opinion, the CommonDialog element is not loading as soon as they construct, so maybe the qt component builders have already consider this, so I need not to do it myself?
    Turning CommonDialog into Loader is just simply
    @
    Page { id: mainPage
    Loader { id: dialogLoader }
    Component {
    id: dialog01
    CommonDialog { //define a dialog }
    }
    Rectangle { id: mainRect
    anchors.fill: parent
    MousrArea { anchors.fill: parent
    onClicked: dialogLoader.sourceComponent = dialog01
    }
    }
    }
    @

    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