Welcome!

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

Reply
Developer
ahmadahmad
Posts: 404
Registered: ‎05-31-2011
My Device: curve

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?

Contributor
chriske86
Posts: 43
Registered: ‎01-05-2013
My Device: Dev Alpha

Re: QObject error

Hi,

 

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...

 

cheers,

chriske

--------------------------------------------------------------
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!
Developer
Curahee
Posts: 229
Registered: ‎01-12-2013
My Device: z30

Re: QObject error

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

______________________________________________________
BB10-OAuth: GitHub