Skip to content

Commit e1e5bbb

Browse files
committed
Android: Enforce native style
We use the 'default' style extraction option introduced in Qt 5.12. With this setting, Qt 5.12.3 does indeed extract the style but doesn't set the variable which would activate the style. Resolves the Android aspect of GH-1255.
1 parent f591ad5 commit e1e5bbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ int main(int argc, char** argv)
112112
QApplication qapp(argc, argv);
113113
#endif
114114

115+
#ifdef Q_OS_ANDROID
116+
qputenv("QT_USE_ANDROID_NATIVE_STYLE", "1");
117+
#endif
118+
115119
// Load resources
116120
Q_INIT_RESOURCE(resources);
117121

0 commit comments

Comments
 (0)