问题描述:

After building Qt statically (configure -static) and running mingw32-make sub-src and running qmake on my project (build->run qmake) and rebuilding it, the exe is fully stand-alone (and huge) but the icons won't load anymore. The icons are in a .qrc file and im loading them by this method:

QIcon icon(":/Icons/icon.ico");

this->setWindowIcon(icon);

网友答案:

http://developer.qt.nokia.com/doc/qt-4.8/qtplugin.html#Q_IMPORT_PLUGIN

http://developer.qt.nokia.com/doc/qt-4.8/plugins-howto.html#static-plugins

相关阅读:
Top