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: 660
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!

----------------------------------------------------------
Twitter: @gyubok
Highlighted
Retired
Posts: 54
Registered: ‎06-26-2012
My Device: BlackBerry Bold 9900
My Carrier: Bell
Developer
Posts: 660
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>

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 292
Registered: ‎07-25-2008
My Device: Passport

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.

Developer
Posts: 660
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?

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 292
Registered: ‎07-25-2008
My Device: Passport

Re: QTransform crashes app

QtGui

 

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