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
Contributor
chris_chrono
Posts: 10
Registered: ‎01-21-2013
My Device: bb10 alpha
My Carrier: tsel

Re: Insert transparent QImage to ImageView

hi mnosov,

yes the problem is still exist, this is the link for the png image

http://i47.tinypic.com/1zdraiu.png
Please use plain text.
Contributor
mnosov
Posts: 15
Registered: ‎10-25-2012
My Device: Dev Alpha B
My Carrier: Megafon

Re: Insert transparent QImage to ImageView

[ Edited ]

There was a mistake in my example code:

 

Try to replace:
      m_originalImage.convertToFormat(QImage::Format_ARGB32_Premultiplied);

With:

      m_originalImage = m_originalImage.convertToFormat(QImage::Format_ARGB32_Premultiplied);

 

After this, transparent area of your image was displayed correctly

 

Example code is updated: https://github.com/mnosov/testroundprogress

Please use plain text.
Contributor
chris_chrono
Posts: 10
Registered: ‎01-21-2013
My Device: bb10 alpha
My Carrier: tsel

Re: Insert transparent QImage to ImageView

hi mnosov,

thx for the reply, and yes , now it displayed correctly


thx again
Please use plain text.