Qt-interest Archive, December 2007
Re: Including moc_ file
Message 1 in thread
Thank you all for your replies. I think I got a good understanding out of it.
Cheers,
Paulo Matos
On Nov 30, 2007 4:57 PM, Peter Prade <prade@xxxxxxxxxxx> wrote:
> Martin wrote:
> > Scott Aron Bloom wrote:
> > > The only time I have ever had to do it, was when I defined
> > a "hidden"
> > > class in a C++ file that was also QObject based. So I had
> > to have moc
> > > run on the C++ file, and include the output in that C++ file.
> >
> > In this case, shouldn't it be:
> >
> > #include "<cpp-file-name>.moc"
> >
> > not the:
> >
> > #include "moc_<cpp-file-name>.cpp"
> >
> > mentioned by the original poster? I've never needed to include a
> > moc_xxx.cpp file.
> >
> > Martin.
>
> Have a look at the qtsolutions, qtpropertybrowser has an example for
> this.
>
> Basically, any <file_name>.h file that has something as
> Q_DECLARE_PRIVATE in it produces a moc_<file_name>.cpp that has to be
> included in the corresponding <file_name>.cpp file.
>
> Cheers,
> Peter
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>
--
[ signature omitted ]