//用Qt mingw版本的编译的程序是可以运行的。但由于Qt5.6以上好像就没有QtWebkit了,而被替代的是QtWebEngineView。而带有QtWebEngineView的版本的都是msvc版本,因此当你用vs2015 + Qt5.7 msvc版本编译时,在xp中运行就会提示无效的win32陈序
//解决办法就是在你的.pro文件中添加已下代码
win32 {
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.01
DEFINES += _ATL_XP_TARGETING
QMAKE_CFLAGS += /D_USING_V140_SDK71_
QMAKE_CXXFLAGS += /D_USING_V140_SDK71_
LIBS += -L$$quote(C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib)
INCLUDEPATH += $$quote(C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include)
}//完美解决
参考http://blog.csdn.net/caoshangpa/article/details/53690612