由 訪客 » 週四 12月 07, 2006 7:31 pm
HEADERS = calculatorform.h
FORMS = calculatorform.ui
SOURCES = calculatorform.cpp \
main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/designer/calculatorform
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/designer/calculatorform
INSTALLS += target sources
這是我建立原先的PRO檔
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += calculatorform.h
FORMS += calculatorform.ui
SOURCES += calculatorform.cpp main.cpp
這是我把它砍掉 在qmake -project所產生的PRO檔