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
Posts: 28
Registered: ‎02-24-2012
My Device: BlackBerry Z10 Limited Edition
My Carrier: Free
Accepted Solution

QObject unresolved inclusion

Hello, 

I'm having an unresolved inclusion problem on QObject include every time I start a new project, how can I fix it?

 

 

Screen Shot 2012-12-11 at 4.8.53PM.png

Developer
Posts: 100
Registered: ‎10-01-2012
My Device: BB10 Dev Alpha
My Carrier: Roger

Re: QObject unresolved inclusion

Check the includes path in your project

Developer
Posts: 28
Registered: ‎02-24-2012
My Device: BlackBerry Z10 Limited Edition
My Carrier: Free

Re: QObject unresolved inclusion

Thanks, fixed unresolved inclusion problem by including QtCore (Project-> Add Library...), but the main problem is still there, QOBJECT isn't recognized, where is this one defined?

Screen Shot 2012-12-11 at 5.50.57PM.png

Contributor
Posts: 23
Registered: ‎11-15-2012
My Device: Red Z10 & PlayBook
My Carrier: E-Plus

Re: QObject unresolved inclusion

If you change the device deploying for, the includes should be added automatically. So do a build for Device-Debug and you should see, that it works. This happens since Beta 4, do not know, why.

 

If not, check following: In my app in the includes I have three Qt directories included:

.../qnx6/usr/include/qt4

.../qnx6/usr/include/qt4/QtCore

.../qnx6/usr/include/qt4/QtDeclarative

Highlighted
Developer
Posts: 28
Registered: ‎02-24-2012
My Device: BlackBerry Z10 Limited Edition
My Carrier: Free

Re: QObject unresolved inclusion

Installing gold SDK right now, will update soon if the problems persists.

Developer
Posts: 28
Registered: ‎02-24-2012
My Device: BlackBerry Z10 Limited Edition
My Carrier: Free

Re: QObject unresolved inclusion

Gold release solved the problem. Thanks everyone.

Developer
Posts: 18
Registered: ‎11-08-2012
My Device: Blackberry 10 Dev Alpha B
My Carrier: ??

Re: QObject unresolved inclusion

In my case, SDK was working fine on Beta 3. After I upgraded my SDK to gold version, that's when I encountered the problem. I tried adding libraries to my project, but then it proceed to editing the .pro project file which generated more errors.

 

Any more solutions??

 

Thanks!

If you find my post helpful, please click like Smiley Happy
Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A

Re: QObject unresolved inclusion

Exactly the same problem here (as described in OP).

 

I have re-installed and still have the same problem.  Any help would really be appreciated.

Developer
Posts: 64
Registered: ‎09-10-2012
My Device: Developer
My Carrier: AMX

Re: QObject unresolved inclusion

Aaagh me too

 

When Itry to import <QImage>, <QNetworkAccessManager>, <QNetworkRequest> and <QNetworkReply> I get:
    - Unresolved inclusion: <QImage>
    - fatal error: QImage: No such file or directory

 

I tried Project->Add Library, searching "images" and then following the onscreen instructions from the cheatsheet (adding lines to the .pro) but it didn't work.

 

I had Beta 4, so I uninstalled it and then installed Gold. The project was built from scratch.

Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A

Re: QObject unresolved inclusion

Hi pepe

 

Please have a read of this thread:

 

http://supportforums.blackberry.com/t5/Cascades-Development/Beta-4-Momentics-IDE-autocompletion-does...

 

This worked for me. In esence it appears to be a problem with the .cproject file.  Read the thread and any problems let me know and I will see if I can help.