PDA

View Full Version : setting desktop background and screensaver in X11



nupul
29th March 2006, 06:24
hi,

Does Qt provide a way for setting the desktop wallpaper....using img formats like jpeg, png, bmp etc.? Also is it possible to make a Qt4 prog activate a screensaver in X?

Thanks

Nupul

nupul
31st March 2006, 11:16
can i access the root window via qt and then set the desktop background
:confused:

Nupul

nupul
2nd April 2006, 14:09
ANY ONE?????

:crying:

jpn
2nd April 2006, 14:31
Qt does not provide any way for changing the desktop wallpaper or activating a screensaver.
These are very much system specific tasks.

wysota
2nd April 2006, 14:39
You can do it via regular XLib calls, but window manager will surely override that with its own calls. If you want to do that, you have to use the architecture provided by the window manager (and each of them has its own) and xscreensaver.

Brandybuck
2nd April 2006, 22:11
You may want to look at the QX11Info class. There's a bit of information here that is good for what you want. You're still going to have to descend to the X11 level though. I would suggest looking at any of the KDE screensavers, and also BlackBox (fluxbox, etc) and its code for the root window background.