configure.bat -confirm-license -opensource -platform win32-g++ -debug-and-release -static -prefix "C:\Qt\Static\5.11.0" -qt-sqlite -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz -opengl desktop -no-qml-debug -no-angle -nomake tests -nomake examples -skip qtwebengine -skip qtwebview -skip qt3d
C:\Qt\Static\5.11.0
教程网址:https://www.cnblogs.com/ike_li/p/6860089.html
完成教程的最后一步,可能不一样采用以下方法即可
静态编译方法在conf文件,直接加上QMAKE_LFLAGS = -static 也可以的,或者在新建工程.pro加上
win32{},见下图,至于dll输出,在新建工程.pro里增加一条
CONFIG += dll