Drawing on desktop (root window) under X11

Maurizio Berti <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CAPn+-XRWyuNkoG+=v=iaXW3n5Dhi1kTHzbSb8ia14MYLstD7Tw@mail.gmail.com>
The Qt documentation ( https://doc.qt.io/qt-5/qapplication.html#desktop )
says this about QDesktopWidget:

On X11, it is also possible to draw on the desktop.


However, I've not been able to understand how this can be done.
I found a very old C++ example (
https://doc.qt.io/archives/3.3/desktop-example.html ) but I couldn't port
it.
Installing an eventFilter on the returned QDesktopWidget won't get any
QPaintEvent (only PolishRequest and Polish events), and subclassing
QApplication to return a subclassed QDesktopWidget won't do anything too.

Does anybody know anything about this?

Thanks,
Maurizio

-- 
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.