Unsolved Full screen makes the screen flickers on Windows 8
-
Grettings Qt community,
For some reason when going full screen (or resizing the window to the entire screen) the screen flickers: it goes to black for a second.
I'm on Windows 8 and it does not seem to happen on an application like chromium for instance.
Is there some kind of flag to disable that behavior ?
Thanks ♥.
-
Hi and greetings
That sounds a bit odd. Its not expected and there is no flag.
Are we talking QML or QWidgets and what version of Qt?
Anything openGl ? -
We are talking QML + Frameless Window.
Here is a related post: https://forum.qt.io/topic/68132/flicker-with-qopenglwidget-when-fullscreen-and-frameless-window.
-
Ok seems to be a plain bug.
-
This is the workaround I'm using with Qt 4:
#ifdef Q_OS_WIN // FIXME Windows: Workaround for opengl full screen flicker. q->setViewportMargins(0, 0, -1, 0); #endif
Is there something equivalent with the QQuickWindow ?
Note: As far as I can tell this is related to Windows 8 + OpenGL + double buffering. I don't have the issue when using single buffering.