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
billbsb
Posts: 144
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
Accepted Solution

QColor conflicts with CONFIG cascades10

Hello everyone,

 

I ran into this issue today and I would like to share a solution.

 

If your project is configured with CONFIG += cascades10 any use of #include <QColor> will result in "fatal error: QColor: No such file or directory". To solve this, just remove cascades10 ... but doing so might break your project in many other ways. On mine I had to manually add new QT properties on the .pro file until it was able to compile again.

 

Can anyone explain what the configuration cascades10 does and why it conflicts with QColor?

 

Thanks!

Cheers!
Developer
Benecore
Posts: 540
Registered: ‎08-31-2013
My Device: Q10, Z10LE, Nokia N950, DAB....

Re: QColor conflicts with CONFIG cascades10

I do not know why the conflict and i don't care about it :smileyhappy:. Because in Cascades i still use QtGui and QtCore 'prefix'

#include <QtGui/QColor>

 :smileywink:



If helped give a like. If your problem was solved mark the post as "Solution"
Portfolio: BlackBerry Nokia
Social: Twitter | Facebook
About Me / Blog DevPDA | Blog
Developer
billbsb
Posts: 144
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.

Re: QColor conflicts with CONFIG cascades10

Nice tip! I was hoping for a solution like this. Do you know if there's a documentation page showing which classes needs to be "prefixed"?
Cheers!
Cheers!
Developer
Benecore
Posts: 540
Registered: ‎08-31-2013
My Device: Q10, Z10LE, Nokia N950, DAB....

Re: QColor conflicts with CONFIG cascades10

I don't know if there is docs about 'prefixing'. I just looked at the include folder inside NDK :smileyhappy:


If helped give a like. If your problem was solved mark the post as "Solution"
Portfolio: BlackBerry Nokia
Social: Twitter | Facebook
About Me / Blog DevPDA | Blog