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. Application with multi QWidget as windows in QStackedWidget
QtWS25 Last Chance

Application with multi QWidget as windows in QStackedWidget

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 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.
  • P Offline
    P Offline
    ploef
    wrote on last edited by
    #1

    Hello,

    I´m writing an application where the needs if for a multi window view.

    One view will handle a stream of camera, other view show a snapshot of the camera and you can edit this, so will you switch from " camera view" to "edit view" and back to "camera view" ..etc with the use of push button

    To switch between views a thought to use a QStackedWidget, my question is if this is okay, or is it better to create a new QWidget Window from the "camera view" to get an "edit view" and when you are ready in the "edit view" to delete this "edit view" and go back to the "camera view"

    Thanks already

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by
      #2

      Hi @ploef

      I think that there is no problem with the use of QStackedWidget,

      You might even use QTabWidget !

      1 Reply Last reply
      0
      • P Offline
        P Offline
        ploef
        wrote on last edited by
        #3

        Thanks for the information, will this not be a memory problem?

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

          Hi,

          What memory problem do you have in mind ?

          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
          2
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            If by your application logic its fine that both
            " camera view" and edit view" exists at the same time,
            there is absolutely nothing wrong with
            a stackedWidget as Its simply a smarter way than manually hide/show widgets.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              ploef
              wrote on last edited by
              #6

              Thanks for the reply and information, that helped me a lot.

              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