Results 1 to 6 of 6

Thread: setting desktop background and screensaver in X11

  1. #1
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question setting desktop background and screensaver in X11

    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

  2. #2
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting desktop background and screensaver in X11

    can i access the root window via qt and then set the desktop background


    Nupul

  3. #3
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: setting desktop background and screensaver in X11

    ANY ONE?????


  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: setting desktop background and screensaver in X11

    Qt does not provide any way for changing the desktop wallpaper or activating a screensaver.
    These are very much system specific tasks.
    J-P Nurmi

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: setting desktop background and screensaver in X11

    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.

  6. The following user says thank you to wysota for this useful post:

    nupul (2nd April 2006)

  7. #6
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: setting desktop background and screensaver in X11

    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.

  8. The following user says thank you to Brandybuck for this useful post:

    nupul (3rd April 2006)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.