Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Application with multi QWidget as windows in QStackedWidget
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"
mostefa last edited by
I think that there is no problem with the use of QStackedWidget,
You might even use QTabWidget !
Thanks for the information, will this not be a memory problem?
What memory problem do you have in mind ?
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.
Thanks for the reply and information, that helped me a lot.