Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved Application with multi QWidget as windows in QStackedWidget

    General and Desktop
    4
    6
    731
    Loading More Posts
    • 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
      ploef last edited by

      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 Reply Quote 0
      • M
        mostefa last edited by

        Hi @ploef

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

        You might even use QTabWidget !

        1 Reply Last reply Reply Quote 0
        • P
          ploef last edited by

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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 2
            • mrjj
              mrjj Lifetime Qt Champion last edited by

              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 Reply Quote 0
              • P
                ploef last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post