Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Quiloader
Qt 6.11 is out! See what's new in the release blog

Quiloader

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.0k 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
    acmezger
    wrote on last edited by
    #1

    in my generic application I load into a display defined by an ui file about 100 times another ui file, while changing some properties (text or other things). This is done through the quiloader. The loading takes the first time about 80 ms and afterwards about 40 ms (due to disk caching). However doing this 100 times starting the application takes a long time about 6 seconds. This is not really nice and I wonder if there is a method to accelerate this loading. probably the time comes from the parsing of the ui buffer, that has to be done every time. By the way, loading the ui file to a QBuffer does not bring any improvement, while with the disk caching you get the same performance increase.

    Any ideas to improve loading of the same structures with qioloader again and again ?

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hm, I do not believe the loading (if you really need that many GUI elements) could be speed up. The most logical solution would be to use a SplashScreen first, load all your GUI elements (all hidden) to the mainwindow and then remove the splash screen and display the mainwindow.
      That at least will give a nice appearance to the user. But why do you need 100 GUI elements? Isn't that a bit much?
      Greetz

      Greetz, Jeroen

      1 Reply Last reply
      0
      • A Offline
        A Offline
        acmezger
        wrote on last edited by
        #3

        well, the idea is that you construct a generic ui file that will be used for data acquisition of different devices. you get for instance a display with many control devices with their values displayed differently. This is something generally used in generic systems. the device names are filled in when loading.

        1 Reply Last reply
        0
        • JeroentjehomeJ Offline
          JeroentjehomeJ Offline
          Jeroentjehome
          wrote on last edited by
          #4

          Then an easy spash screen might be the best option. It might be so that every event loop only one GUI is loaded internally.
          QSplashScreen gives nice and easy possibilities !

          Greetz, Jeroen

          1 Reply Last reply
          0
          • A Offline
            A Offline
            acmezger
            wrote on last edited by
            #5

            Ok,

            I use a spalsscreen now with a progress bar. it work fine,

            thank you for the suggestion

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bobEdwards
              wrote on last edited by
              #6

              You might think about doing some "lazy" evaluation here: is the user going to use all 100 different GUI pages/elements each and every time the program is run? Will they all be on the screen at once?

              If not, you could think about not pre-loading any of the GUI elements, and only create them on an as-needed basis when the user calls them.

              [quote author="acmezger" date="1385635696"]well, the idea is that you construct a generic ui file that will be used for data acquisition of different devices. you get for instance a display with many control devices with their values displayed differently. This is something generally used in generic systems. the device names are filled in when loading.
              [/quote]

              1 Reply Last reply
              0
              • JeroentjehomeJ Offline
                JeroentjehomeJ Offline
                Jeroentjehome
                wrote on last edited by
                #7

                If you found the answer, please place [SOLVED] in front of the first post.

                Greetz, Jeroen

                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