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
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700

QSizeF has incomplete type

I want to make a QSizeF variable in my header file:

QSizeF m_screenSize;

But when I do this it gives me the error:

eror: field 'm_screenSize' has incomplete type

 

 

Developer
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700

Re: QSizeF has incomplete type

[ Edited ]

When assigning it in the cpp file, I was doing a direct assignment from display.pixelSize(), which is a QSize, not a QSizeF

 

I needed to do this:

m_screenSize = QSizeF(display.pixelSize().width(), display.pixelSize().height());

 

Seems I was wrong, the error came back.