[Gambas-user] Transparency showing black on a custom qt control.
g4mba5 at gmail.com
Thu Jan 6 14:51:49 CET 2022
Le 06/01/2022 à 04:45, Bruce Steers a écrit :
> Anyone had an instance where a DrawingArea Paint.DrawImage() command
> painte with a black background (but only on qt)
> wondering if it's a common problem?
> Tried using Draw and setting Draw.Transparency, can't get anything to work
> i'll attach the proj............................
> Hod the phone,,i figured it out.
> Problem was because i used image.Copy()
> Seems if you Copy() an image it kills the transparency but only on qt :-\
> I attach a simple test app.
> it just has 2 PictureBox controls.
> this is it's code...
> *Pic = Picture["icon:/96/gambas"]
> PictureBox1.Picture = Pic
> PictureBox2.Picture = Pic.Copy()
> on GTK both images have transparent BG, but on QT the Copy has black BG.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
It is fixed by commit
More information about the User