Results 1 to 4 of 4

Thread: how to animate opening and closing of a switch?

  1. #1
    Join Date
    Feb 2012
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default how to animate opening and closing of a switch?

    Hi Guys,

    I am new to Qt and this is my first post. My qt platform is embedded linux platform. I want to show opening and closing of a switch if a push button is clicked.

    What is the best way to animate the action of opening and closing of switch. Can some one please give some pointers to achieve this.

    Thanks
    Tama

  2. #2
    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: how to animate opening and closing of a switch?

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2012
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to animate opening and closing of a switch?

    Thanks for pointing out to QPropertyAnimation or QTimeLine. Does anyone have a simple example of using QPropertyAnimation or QTimeLine. My device is ARM9 chip S3C2440 (4xxMhz). Can I display an image and then rotate that image to animate closing and opening of a switch. Can some one please point to a simple example for this.

  4. #4
    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: how to animate opening and closing of a switch?

    Quote Originally Posted by tama View Post
    Does anyone have a simple example of using QPropertyAnimation or QTimeLine.
    Yes. They are in the docs behind the links I gave you.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Animate drawing
    By ogh in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2011, 19:35
  2. animate buttons
    By kenouz1234 in forum Qt Programming
    Replies: 2
    Last Post: 8th November 2010, 12:23
  3. animate items
    By ensky_cy in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2009, 07:31
  4. Replies: 5
    Last Post: 10th May 2006, 00:20
  5. save animate to gif
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 16:35

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.