From 84333be48e5ded810f3d75b5f00b0d4c12b02adf Mon Sep 17 00:00:00 2001 From: Kitteh Date: Wed, 31 Oct 2018 10:56:05 +0000 Subject: [PATCH] [Launcher] Tried fix for Platform Plugin. --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index e883adf..9ef9cbb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,11 @@ int main( int argc, char *argv[] ) { - setenv("QT_QPA_PLATFORMTHEME", "gtk3", 0); +#ifdef WINDOWS +setenv("QT_QPA_PLATFORM_PLUGIN_PATH", "plugins\platforms", 0) +#else +setenv("QT_QPA_PLATFORMTHEME", "gtk3", 0); +#endif setenv("QT_QUICK_CONTROLS_STYLE","Desktop",1); QApplication app(argc, argv); app.setOrganizationName("KittehPlayer");