[Qt-interest] How should sources in subdir be compiled?
Kārlis Repsons
k at 11.lv
Mon Mar 29 10:30:11 CEST 2010
It was most likely another thing, which made the problem with MainWindow.moc,
sorry for redundant post...
On Monday 29 March 2010 06:21:05 André Somers wrote:
> Could you show your project file? Did you setup the HEADERS item correctly?
See for yourself...
> And did you include the Q_OBJECT macro
true
It would be better if you wrote what needs to be added to these:
x.pro:
====================
SOURCES += main.cpp
RESOURCES += resources.qrc
include(GUI/gui.pri)
====================
gui.pri:
========================
HEADERS += MainWindow.h \
List.h \
Tabs.h
SOURCES += MainWindow.cpp \
List.cpp \
Tabs.cpp
========================
Now qmake says: WARNING: Failure to find: MainWindow.cpp and others.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100329/1b1fd290/attachment.bin
More information about the Qt-interest-old
mailing list