How to use QObject/moc?
Martell, Larry
martell at aptec.com
Wed Apr 5 19:30:49 BST 2006
On Wed 4/5/2006 11:57 AM Mailing list agent on behalf of kitts wrote:
> I have added ":public QObject" beside the class and the "Q_OBJECT" keyword
> in the class header as is in the other classes created by the class wizard.
> I get the error
>
> "/usr/share/qt3/include/qobject.h:211: error: 'QObject::QObject(const
> QObject&)' is private"
>
> I have also tried placing "#include filename.moc" at the bottom of the
> implementation file.
>
> How do I work with QObject and moc?
This is probably a question better asked on the Qt list:
http://lists.trolltech.com/qt-interest/ <http://lists.trolltech.com/qt-interest/>
Are you running moc? Because if you use the Q_OBJECT macro you must run moc.
HTH,
-larry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3772 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20060405/5310f548/attachment.bin>
More information about the KDevelop
mailing list