[Qt-interest] How should sources in subdir be compiled?
André Somers
andre at familiesomers.nl
Mon Mar 29 08:21:05 CEST 2010
Could you show your project file? Did you setup the HEADERS item correctly? And did you include the Q_OBJECT macro in the declaration of the classes that need Qt's meta object system or signals & slots?
André
-----Oorspronkelijk bericht-----
Van: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] Namens Karlis Repsons
Verzonden: zondag 28 maart 2010 21:51
Aan: qt-interest at trolltech.com
Onderwerp: Re: [Qt-interest] How should sources in subdir be compiled?
When trying with qmake, there is a strange behaviour like this:
in produced Makefile:
====================================
moc_MainWindow.cpp: GUI/Tabs.h \
GUI/List.h \
GUI/MainWindow.h
/usr/bin/moc $(DEFINES) $(INCPATH) GUI/MainWindow.h -o moc_MainWindow.cpp ...
MainWindow.o: GUI/MainWindow.cpp GUI/MainWindow.h \
GUI/Tabs.h \
GUI/List.h \
MainWindow.moc
====================================
..however, there is no rule to make MainWindow.moc! Any ideas why?
More information about the Qt-interest-old
mailing list