当前位置: 动力学知识库 > 问答 > 编程问答 >

windows - Qt Icons won't load after static build

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: