Results 1 to 5 of 5

Thread: Desktop wallpaper Fade In

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Desktop wallpaper Fade In

    Hi everyone

    I'm pretty much new to the QT world, so I'm trying to learn something by reading codes and stuff. My main problem now is that I need to set a wallpaper, showing it slowly from a black background.
    I googled and tested some methods, but couldn't get it working.
    So I'll just post my little code and ask if someone can explain me a way to make the effect I'm looking for

    Qt Code:
    1. void Desk::set_wall() {
    2. setPixmap(wall_img);
    3. setScaledContents(true);
    4. setGeometry(0, 0, 1280, 1024);
    5. }
    To copy to clipboard, switch view to plain text mode 


    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Desktop wallpaper Fade In

    ok, where is the code that deals with fading in?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Desktop wallpaper Fade In

    Actually I removed it and what I posted is the simple code that provides me the wallpaper.
    After trying to get it working with a for and a setAlpha, I gave up and posted here to get some help on the whole thing, because some people draws a rectangle and make it fade out, and I don't know which is the right way to do it.
    I also read on some KDE page online that the setOpacity method its not either a good way.
    So I don't know, I'm stuck on this

  4. #4
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    2
    Thanked 6 Times in 6 Posts

  5. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Desktop wallpaper Fade In

    you need just:
    Qt is just taking all the fun of coding things your self... bummer...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. video fade in/out in phonon
    By panpanpandas in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 08:40
  2. How to set the picture as the phone wallpaper
    By wudelei in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 31st March 2010, 05:08
  3. Setting wallpaper on windows
    By ihoss in forum Qt Programming
    Replies: 19
    Last Post: 18th September 2009, 02:54
  4. Replies: 5
    Last Post: 31st January 2009, 07:36
  5. fade from one colour to another
    By panduro in forum Newbie
    Replies: 2
    Last Post: 18th June 2008, 13:30

Tags for this Thread

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.