|
编译QT程序会使用如下命令:
[mw_shl_code=bash,true]$ qmake -project
$ qmake
$ make[/mw_shl_code]
则需在执行qmake -project后手动编辑.pro文件,在此文件中添加:QT += sql xml,参考如下第5行:
[mw_shl_code=bash,true]
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
QT += sql xml
# Input
HEADERS += database.h dialog.h mainwindow.h
SOURCES += dialog.cpp main.cpp mainwindow.cpp
RESOURCES += masterdetail.qrc[/mw_shl_code]
然后再执行qmake,make命令。
|
|