[PyQt] Message boxes or OSD

Sundance sundance at ierne.eu.org
Wed Nov 21 13:43:45 GMT 2007


Nahuel wrote:

> I wonder if I could make nice notifications similar to kdialog's or
> maybe something like amarok osd.

Hi Nahuel,

I'd make it a custom QWidget with the FramelessWindowHint flag. I refer 
you to the 'Shaped Clock' example of the Qt documentation:
http://doc.trolltech.com/4.3/widgets-shapedclock.html

The Python equivalent, 'shapedclock.py', ships with the documentation 
and examples of recent releases of PyQt 4.

Just have the widget paint your OSD instead of a clock and I'd say you 
have a good basis to work from. :)

HTH,

-- S.


More information about the PyQt mailing list