pro文件的配置可以让开发方便许多
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
DEFINES += LANG_EN
RC_ICONS = App.ico
contains(QT_ARCH, i386) {
CONFIG(debug, debug|release){
LIBS += -L./Lib/32bit -lqscintilla2_qt5d -lApp_Driver
} else {
LIBS += -L./Lib/32bit -lqscintilla2_qt5 -lApp_Driver
}
DESTDIR = ./32bit_bin
} else {
CONFIG(debug, debug|release){
LIBS += -L./Lib/64bit -lqscintilla2_qt5d -lApp_Driver
} else {
LIBS += -L./Lib/64bit -lqscintilla2_qt5 -lApp_Driver
}
DESTDIR = ./64bit_bin
}
INCLUDEPATH += ./include
msvc {
QMAKE_CFLAGS += /utf-8
QMAKE_CXXFLAGS += /utf-8
}