Application with multi QWidget as windows in QStackedWidget
-
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
-
Hi @ploef
I think that there is no problem with the use of QStackedWidget,
You might even use QTabWidget !
-
Hi,
What memory problem do you have in mind ?
-
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.