07-23-2013 01:51 AM
I need to show a png image in a QML page using a QByteArray passed from c++ routines to QML.Is it possible to do so...?
Is there any simple method to it.?
Solved! Go to Solution.
07-23-2013 04:32 AM
yes, take a lookt at http://blackberry.github.io/Cascades-Samples/image
07-23-2013 05:42 AM
Thanks for your reply
Actually i converted it to an image and emitted through a signal from cpp.And when i am tring to set the image in a ImageView using setImage(), got an error : Unknown method parameter :Image.Its because eventhough i converted it to bb::cascades::Image.,in the QML it is getting as QVariant(bb::cascades::Image).
07-30-2013 12:32 AM
Actually it was mistake from my side. I tried to set the image in QML using setImage() method. It is not the correct way.
The correct method is to use
id.image = imagefromcpp