Results 1 to 2 of 2

Thread: Dynamic wallpaper

  1. #1
    Join Date
    Sep 2017
    Qt products
    Qt4 Qt5 Qt/Embedded
    Unix/X11 Windows

    Default Dynamic wallpaper

    Hey Guys, so here's the thing: i want to make a "bouncy" wallpaper (those classical that when reach the end of screen bounce to another direction) but with that, i also would like to make the option of mouse drag and drop the png and after the button release, the image keeps bouncing... is it better to use QLable or QGraphics? Thanks for the attention, appreciate the help.

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 844 Times in 831 Posts
    Qt products

    Default Re: Dynamic wallpaper

    QLabel or QGraphics?
    It probably doesn't matter which one you use. With QLabel you do not have the overhead of creating a QGraphicsScene and QGraphicsView, but then you also do not have as much control over the shape and other properties of the label. With the graphics framework, your label can be any size or shape. Personally, I would probably choose the graphics framework.

    You should look into the Qt Animation framework for implementing the motion part. It would be very cool if you could make your image "squishy" - when it hits the wall, it squishes a little before it bounces off, just like a regular foam ball would. You could even throw in an occasional rotten tomato that squishes a little bit too much.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Setting Wallpaper image before launching application
    By mania in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2012, 10:55
  2. Replies: 0
    Last Post: 29th March 2012, 19:56
  3. Desktop wallpaper Fade In
    By Dan` in forum Qt Programming
    Replies: 4
    Last Post: 30th November 2010, 10:14
  4. 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
  5. Setting wallpaper on windows
    By ihoss in forum Qt Programming
    Replies: 19
    Last Post: 18th September 2009, 02:54

Tags for this Thread


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.