Hello
Thank you for the reply - it's much appreciated.
Sorry if I'm being daft, but doesn't 255 specify no opacity? Please see:
http://www.qtcentre.org/threads/1307...Qt-transparent
Your further advice would be much appreciated.
Kindest regards
Hello
Thank you for the reply - it's much appreciated.
Sorry if I'm being daft, but doesn't 255 specify no opacity? Please see:
http://www.qtcentre.org/threads/1307...Qt-transparent
Your further advice would be much appreciated.
Kindest regards
NoQuiteFeynman (30th August 2013)
Hi
Thanks for the continuing responses.
I thought you meant that I need to use image.fill(qRgba(0,0,0,255)); for transparency! Other advice on the board says I need to use image.fill(qRgba(0,0,0,0)); for transparency.
Should I use something else for transparency?
Please advise.
Kindest regards
A transparent image that you render on the pixmap (be it transparent or not). I don't know what sizes your jpeg images have but assuming their size is somewhere close to 500x500, they will most probably cover the whole area of the pixmap so it doesn't matter if you "fill the pixmap with transparency" or not if you then draw a non-transparent image over it.
NoQuiteFeynman (30th August 2013)
Zero in the alpha channel makes a pixel totally transparent, and 1.0 (255 when expressed as 8 bit int) makes it totally opaque.
I gather you want a partly transparent top image to be drawn over the bottom image.
Qt Code:
// both images are opaque because JPEG has no alpha channel p.setOpacity(0.2); p.end();To copy to clipboard, switch view to plain text mode
NoQuiteFeynman (30th August 2013)
Hi
This works, thank you very much for your help ChrisW67 and Wysota, it's very much appreciated!
All the best.
Kindest regards
Bookmarks