网上down的程序,开始没有仔细看。make时发现重复定义问题。后来发现是uic自己生成的.h和.cpp与已有的代码冲突, 如何不要uic自己生成文档,而将.ui文件与自己写的.cpp .h文件对应起来?
看到程序原来代码里面的.pro如下,根本没有提到.ui文件
TEMPLATE = app
CONFIG = qt thread warn_on debug
HEADERS = icons.h \
fileopendlg.h \
filesavedlg.h \
playerdoc.h \
playerview.h \
playerwin.h \
video.h
SOURCES = fileopendlg.cpp \
filesavedlg.cpp \
main.cpp \
playerdoc.cpp \
playerview.cpp \
playerwin.cpp \
video.cpp
INTERFACES =
现在我修改了.ui文件和相应的.cpp, .h文件,如何重新编译?
用原来的makefile, 能make通过,但是生产的可执行程序不能运行。
大家帮我看看。