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/src/src.pro b/src/src.pro index ca5d075fc..ae889da72 100644 --- a/src/src.pro +++ b/src/src.pro @@ -28,6 +28,10 @@ nox { DEFINES += DISABLE_GUI } else { QT += xml + CONFIG(static) { + DEFINES += QBT_STATIC_QT + QTPLUGIN += qico + } TARGET = qbittorrent } QT += network