[Qt-interest] Q_OBJECT in DLL - Release build warnings

Catalin Roman katalin.roman at gmail.com
Thu Feb 11 08:59:37 CET 2010


Yes, you are right. As you said, lesson learned :).
Thanks,
Catalin

On Wed, Feb 10, 2010 at 5:05 PM, <Oliver.Knoll at comit.ch> wrote:

> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100211/19e8b9ca/attachment.html 


More information about the Qt-interest-old mailing list