Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

QObject error

hi, when i try to use #include <QObject>, this error occured :

multiple markers at this line :

- fatal error :QObject: no such file or directory

- unresolved inclursion <QObject>


can any one help me please?

Posts: 43
Registered: ‎01-05-2013
My Device: Dev Alpha
My Carrier: Telenor Hungary

Re: QObject error



try this: #include <qobject.h>

And don't forget the Q_OBJECT macro in your class definition.


Simple QObject is not working for me either...




If my post was helpful or it was the solution for Your problem, please don't forget to give me a like, and mark my post as a solution. Thanks!
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: QObject error

Or try to clean the project and rebuild it. Sometimes this solves some annoying problems for me.

BB10-OAuth: GitHub