[Qt-interest] qmake and scope: prevent moc from moc'ing file?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Thu Feb 10 18:27:27 CET 2011
On 2011-02-10 Scott Scott Aron Bloom wrote:
> ...
> I dot this all the time, and have no problems at all.. Heck the Qt distro does this...
I would be surprised if such a thing went unnoticed so far (Qt 4.7.1)... even if the actual interface inherits from QObject already it is not so unlikely that the corresponding platform-specific implementations will add the Q_OBJECT macro again (because for the needed meta class information), and that would fail...
> I would turn on the -Wall and the --debug flags and see whats going on.
I will do so. But I really checked, the actual source files (the Foo_Mac.cpp one) do really not get compiled, it is just the moc compile step which seems to be errorneously added (from the Foo_Mac.h file). But maybe I have some other weird qmake settings in my *.pro file...
Will do some more experiments, since now I know this is actually supposed to work :)
Thanks, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list