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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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.