You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

n00b

Trainee

  • "n00b" is male
  • "n00b" started this thread

Posts: 118

Location: Germany

Occupation: Systemelektroniker

  • Send private message

1

Saturday, August 11th 2007, 9:04pm

semitransparent wigets

here is the code for semitransparent widgets on windows !with control elements!.

the class works very simple:

1. Set the Widget to Layered Window, which activates alpha blending.
2. initialise a QPixmap with a semi-transparent picture
3. Draw the control elements into the Pixmap
4. Render the Pixmap onto the Widget
n00b has attached the following file:
  • QAlphaWidget.zip (38.03 kB - 186 times downloaded - latest: Nov 23rd 2011, 2:26pm)

GuS

Beginner

  • "GuS" is male

Posts: 9

Location: Argentina

  • Send private message

2

Friday, August 17th 2007, 3:52am

RE: semitransparent wigets

Hi!!

Could this be used for Linux/X11 too? cause i really need to do this... and i am looking and reading a lot for it... but still with no luck :(

So... what i need is exactly as that example, i have a semi-transparent png pixmap and i want that to the background of my app and see through it my desktop.
Like, superkaramba applets.

Thanks!!

Cheers.
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar

This post has been edited 1 times, last edit by "GuS" (Aug 17th 2007, 4:18am)


n00b

Trainee

  • "n00b" is male
  • "n00b" started this thread

Posts: 118

Location: Germany

Occupation: Systemelektroniker

  • Send private message

3

Friday, August 17th 2007, 4:09pm

im working on this for linux. windows was easier.

GuS

Beginner

  • "GuS" is male

Posts: 9

Location: Argentina

  • Send private message

4

Friday, August 17th 2007, 5:40pm

I bet it is!!!

But i will never use windows to test it :P

Hope i could make this possible.

PD: is not problem if you made the test with pure QT, cause i could translate it to pyqt later.

Thanks.
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar