[Gambas-user] Transparency showing black on a custom qt control.

Benoît Minisini 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.
> Respects
> BruceS
> 
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 

It is fixed by commit 
https://gitlab.com/gambas/gambas/-/commit/52c3a45680be6c76a8056c4a0c663490f14f4ea6.

Regards,

-- 
Benoît Minisini


More information about the User mailing list