QGraphicsViewe without any "Frame" in Full screen - how to?
-
Hi,
I have a QGraphicsView (including a Scene) in my MainWindow.
Is there a way to "detach" this View and show it Fullscreen without any "frame or other elements" around?
And how to come back to normal view mode?Thx and regards
Put it in a
QDockWidgetor in its own (maybe even frameless/borderless)QWidget.And how to come back to normal view mode?
You have to find a way, since
FramelessWindowHintremoves all window/frame decorations and shows only the rendered widget itself.
( maybe aQWidgetwith a layout and yourQGraphicsView+ some control buttons) -
Hi,
I have a QGraphicsView (including a Scene) in my MainWindow.
Is there a way to "detach" this View and show it Fullscreen without any "frame or other elements" around?
And how to come back to normal view mode?Thx and regards
@ademmler QGraphicsView inherits QFrame.
step1: remove it from the current layout
step2: set its parent to nullptr
step3: save its flags and size
step4: set its size to full screen
step5: set flag to show it on the topreverse these steps when it is set back.