# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-06-24 07:37:53 # Node ID 5ea7c2e043537c94ceaabb8d600d8eedad1202e6 # Parent 72826f1ace782c2c35ca424203226008582ed8d2 fix for "windows platform plugin not found" on msys2 + static qt + cmake build diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -35,6 +35,11 @@ #include "version.h" #include "floatswap.h" +#if defined(Q_OS_WIN) && defined(QT_STATIC) +#include +Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) +#endif + MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow),