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
Highlighted
Developer
Posts: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom
Accepted Solution

QColor weird compilation error

Hi all,

 

My code is not working and I can't figure out why

 

 

QColor shapeColor = QColor(shapeImage.pixel(x-shapeStartXCoord,y-shapeStartYCoord));
if (shapeColor.value() == QColor.black()){ 

...

 

/src/App.cpp:252:37: error: expected primary-expression before '.' token

 

What is wrong with shapeColor.value() ??? Or maybe the problem os QColor.black() ?

 

Thanks for your help,

Laurent

Twitter : @LaurentKP
My apps
Developer
Posts: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Re: QColor weird compilation error

Oups sorry the right syntax is :

 

if (shapeColor.value() == Qt::black){

Twitter : @LaurentKP
My apps