[PyQt] Drawing on desktop (root window) under X11

Maurizio Berti maurizio.berti at gmail.com
Mon Jul 22 02:29:37 BST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190722/9eb94677/attachment.html>


More information about the PyQt mailing list