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.
12-17-2012 11:40 AM
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.
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.
Solved! Go to Solution.
01-04-2013 10:36 AM
Okay, I found a really dirty workaround.
Assume we have a QByteArray containing the image data:
setScalingMethod(ScalingMethod::AspectFit); QImage qImage = QImage::fromData(imageData); setPreferredWidth(qImage.width()); setPreferredHeight(qImage.height()); setMinWidth(qImage.width()); setMinHeight(qImage.height());
03-21-2013 10:42 AM
Hi oliver.kranz, thanks for logging this issue to the developer issue tracker. It is actually a known issue that's currently under investigation.