Unsolved Is it ok to move QWidget outside screen?
-
Hi,
Sometimes I would like to move my QWidget outside the screen for example widget->move(-500,-500). Is is safe and my app will not be crashed? The same question about QPainter and drawText begin at position (-300,-300).
-
@TomNow99 said in Is it ok to move QWidget outside screen?:
Is is safe and my app will not be crashed?
You can simply try. But it should not crash because of this. drawText() should also be fine, but I never tested what happens if drawing with negative x/y values.
-
If you want to hide your widget you could simply call hide on that widget.
-
-
Consider that some graphics drivers may just shove the widget back into visible space.