PDA

View Full Version : transparent splash



tinysoft
13th May 2011, 09:50
hi everyone ..

i used an image to a splash .. the image have a transparent area .. but on splash show the transparent area is filled with default background color .. is there any way that i can make it transparent ?

tsp
13th May 2011, 10:39
Please take a look at this (http://www.qtcentre.org/threads/32594-Showing-a-splash-screen-with-transparency.?p=151664#post151664), maybe it will work for you also.

tinysoft
13th May 2011, 11:12
thank you .. :)

i tried it and it worked fine ...just as i wanted .

wysota
13th May 2011, 11:31
Set the Qt::WA_TranslucentBackground attribute on the window.

tinysoft
13th May 2011, 15:13
Set the Qt::WA_TranslucentBackground attribute on the window.
i tried this one on but it gives me a black screen allover the splash area.


splash->setAttribute(Qt::WA_TranslucentBackground,1);


but this one (http://www.qtcentre.org/threads/32594-Showing-a-splash-screen-with-transparency.?p=151664#post151664) already worked fine with me.

thank you for your support