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 processes all pages simultaneously?

Does QStackedWidget processes all pages simultaneously?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qstackedwidgetpagesgui
2 Posts 2 Posters 352 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.
  • M Offline
    M Offline
    MarcoMon
    wrote on last edited by
    #1

    Hello all. Im new to the forum.

    Im using QtDesigner to design a interface and im using QStackedWidget to, well, stack many pages with some widgets inside them. The thing is: each widget inside the page is a pyDMLabel, which, when showing up, is constantly getting values from variables outside the interface and showing them up.
    Does QStackedWidget keeps processing the variables values of all the pages even when they are not showing up? If yes, is there a way to determine a maximum number of pages that would make the application too heavy? And lastly, if yes, what would be a better way of solving this?

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

      Hi and welcome to devnet,

      QStackedWidget does not care nor handle what do the widgets inside it. What will not happen is UI updates but all the rest will. What you can do is disable these processing when the widgets are not visible if it makes sense.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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