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.

Posts: 217
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2
Accepted Solution

Invalid scaling method

We extended ImageView in C++. It doesn't let us set the scaling method to none. We always get the log message "Invalid scaling method"


Either if we set it to none in C++ it does not work.



 Or if we set it to none in QML it does not work.

scalingMethod: ScalingMethod.None

 All the other scaling methods work fine.


How do we make the ImageView not to scale the image?


The only solution we see is to implement the ImageView in QML which is not our preferred solution.

Posts: 217
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2

Re: Invalid scaling method

Okay, I found a really dirty workaround.


Assume we have a QByteArray containing the image data:


QImage qImage = QImage::fromData(imageData);


Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Invalid scaling method

Hi oliver.kranz, thanks for logging this issue to the developer issue tracker. It is actually a known issue that's currently under investigation.


Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker