[Qt-interest] Q_OBJECT in DLL - Release build warnings
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Feb 10 16:05:11 CET 2010
Catalin Roman wrote on Wednesday, February 10, 2010 2:04 PM:
> ...
> Looking back, I think that the description for HEADERS
> (http://doc.trolltech.com/4.6/qmake-variable-reference.html#headers)
> got me confused, because it states: "qmake will also automatically
> detect if moc is required by the classes in these headers, and add
> the appropriate dependencies and files to the project for generating
> and linking the moc files".
Well, "dependencies" in the sense of "moc_foo.cpp depends on foo.h, and whenever foo.h is changed (e.g. a new slot is added) then moc_foo.cpp is re-generated (hence qmake takes care for you of this dependency). Also moc_foo.cpp is *added* to your project."
And that's exactly what the documenation states what qmake does with HEADERS ;) And that's exactly what you *don't* want for your CounterBar (*.exe) project ;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list