Proper use of Q_OBJECT?

Posted by Jen on Stack Overflow See other posts from Stack Overflow or by Jen
Published on 2010-06-10T03:13:55Z Indexed on 2010/06/10 3:22 UTC
Read the original article Hit count: 503

Filed under:
|
|

If I derive my class from QObject (or a subclass), the Qt documentation says that I have to put the Q_OBJECT macro into my class declaration.

It also ways I need to "run the meta-object compiler" for my class.

I have no idea how to do this. Is this something I need to add to the .pro file? Do I need to edit the makefile? This seems overly complicated for a simple derived class.

I'm using Qt Creator.

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt-creator