is showMaximized() guaranteed to show the window?
-
wrote on 26 Jan 2016, 19:36 last edited by
Is
showMaximized()
guaranteed to at least show the window on all desktop operating systems?
Is it possible to determine if it failed in any way (via code)?Nor does X11 provide a way to maximize a window. QWidget::showMaximized() has to emulate the feature. Its result depends on the result of QWidget::frameGeometry() and the capability of the window manager to do proper window placement, neither of which can be guaranteed.
-
wrote on 26 Jan 2016, 20:34 last edited by A Former User
Hi!
Is showMaximized() guaranteed to at least show the window on all desktop operating systems?
Looking at
void QWidget::showMaximized()
in qwidget.cpp I would say 'yes' becausesetVisible(true)
is called no matter happens before.Do you know any desktop environment where
showMaximized
doesn't work? -
Hi!
Is showMaximized() guaranteed to at least show the window on all desktop operating systems?
Looking at
void QWidget::showMaximized()
in qwidget.cpp I would say 'yes' becausesetVisible(true)
is called no matter happens before.Do you know any desktop environment where
showMaximized
doesn't work?wrote on 26 Jan 2016, 21:09 last edited by@Wieland Thanks for the help and the link.
Do you know any desktop environment where showMaximized doesn't work?
No I do not. I'm contributing to an open source project so I want to be sure.
2/3