From 4e1212f83a578069ae97f725e7d296a0de84ca3f Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@digia.com> Date: Fri, 27 Sep 2013 09:39:21 +0200 Subject: [PATCH] Set Qt::AA_DontCreateNativeWidgetSiblings on Windows/Mac. Prevent creation of native windows for subwidgets, caused by the welcome screen. Task-number: QTCREATORBUG-10251 Change-Id: I2b475e963c5dfd1485f0876817c88d80fc2abd25 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> --- src/app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 994e37f1a8f..bb16db908f3 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -312,6 +312,11 @@ int main(int argc, char **argv) #if QT_VERSION >= 0x050100 app.setAttribute(Qt::AA_UseHighDpiPixmaps); +# if defined(Q_OS_WIN) || defined(Q_OS_MAC) + // Prevent native windows from being created for the sibling widgets of the welcome screen. + // Causes flicker on Linux, though. + app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); +# endif #endif // Manually determine -settingspath command line option -- GitLab