diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-09-27 09:39:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-09-30 11:05:41 +0200 |
commit | 4e1212f83a578069ae97f725e7d296a0de84ca3f (patch) | |
tree | 86ffe06072a5f14548f9082c43dcb617c2389ee0 /src/app | |
parent | 977a70b3ea76f44d73e9d3a3176d7214e2ed4e4e (diff) | |
download | qt-creator-4e1212f83a578069ae97f725e7d296a0de84ca3f.tar.gz |
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>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index 994e37f1a8..bb16db908f 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 |