diff --git a/src/main.cpp b/src/main.cpp index 5b7100ea5..7bcbdef42 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,6 +34,10 @@ #include #ifndef DISABLE_GUI +#if defined(QBT_STATIC_QT) +#include +Q_IMPORT_PLUGIN(qico) +#endif #include #include #include diff --git a/winconf.pri b/winconf.pri index 68812042e..3d9eadbf9 100644 --- a/winconf.pri +++ b/winconf.pri @@ -45,3 +45,8 @@ else { DEFINES += WITH_GEOIP_EMBEDDED message("On Windows, GeoIP database must be embedded.") + +CONFIG(static) { + DEFINES += QBT_STATIC_QT + QTPLUGIN += qico +}