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. Does QStackedWidget load all its indexes at once?
Forum Updated to NodeBB v4.3 + New Features

Does QStackedWidget load all its indexes at once?

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

    We are planning to have a StackedWidget at our program's mainwindow. This means that this widget will be loaded every time our program is being launched, and this actually means that we care a lot about the time that it takes so as to launch. So, the question is, does StackedWidget load automatically all of its indexes or it loads only on demand? ( I would prefer the latter ).

    If it automatically loads all of the indexes, how would I make it to load only on index demand (e.g. when it is asked for the index No 1 then to load the corresponding UI elements etc).

    Thanks in advance for any answers!

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chacham15
      wrote on last edited by
      #2

      TBH, id reccommend a different line of thought: try it and see. Often times, premature optimization is a waste of time.

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

        Hm, maybe, but our computers are fast enough not to spot the difference. Our users' computers may be slower and the difference to be spot-able.

        Do you recommend an other way so as to realize what's going on?

        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