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
gyubok
Posts: 520
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

QTransform crashes app

Hi, I am trying to use QTransform to rotate an image after finding out its orientation but the app crashes when it runs

 

QTransform myTransform;
myTransform.rotate(90);
qImage = qImage.transformed(myTransform,Qt::SmoothTransformation);

 I don't know what part of my implementation is wrong. Thanks!

Please use plain text.
BlackBerry Development Advisor (Retired)
kizkasen
Posts: 54
Registered: ‎06-26-2012
My Device: BlackBerry Bold 9900
My Carrier: Bell
Please use plain text.
Developer
gyubok
Posts: 520
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: QTransform crashes app

Yes, I've seen both of those threads before I posted. I've tried inluding the QtCore library and included <QTransform> (which creates "unresolved inclusion" so project build)

 

#include <QTransform>

Please use plain text.
Developer
dkonigs
Posts: 247
Registered: ‎07-25-2008
My Device: Bold 9900

Re: QTransform crashes app

Assuming the app builds and runs okay, but crashes when doing the image transform, I strongly suspect that the actual cause of the crash is something you're doing (or not doing) before or after the code snippet posted above.

Please use plain text.
Developer
gyubok
Posts: 520
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: QTransform crashes app

Which library do I need to add to the .pro file to use the QTransform?

Please use plain text.
Developer
dkonigs
Posts: 247
Registered: ‎07-25-2008
My Device: Bold 9900

Re: QTransform crashes app

QtGui

 

Its one of the few parts of QtGui that you can still use from within a Cascades app.

Please use plain text.