Results 1 to 7 of 7

Thread: Animation effect of gif in QPushButton

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Animation effect of gif in QPushButton

    Hi,

    I have an animated (attached)gif file. I have set this to a PushButton
    icon like in the following :-

    Qt Code:
    1. QPushButton* button = new QPushButton(this);
    2. button->setIcon(QIcon((":/images/1.gif")));
    3. button->setIconSize(QSize(128,128));
    4. button->setFlat(true);
    To copy to clipboard, switch view to plain text mode 


    But I am not able to see the animation effect in the GUI.

    Please tell me some body to see animation effect.

    Thanks
    Santosh
    Last edited by high_flyer; 1st March 2011 at 10:26.

Similar Threads

  1. Removing pressed effect from a QPushButton
    By Luc4 in forum Qt Programming
    Replies: 3
    Last Post: 14th August 2010, 11:43
  2. 3D Effect
    By andzoff in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2010, 11:52
  3. Replies: 0
    Last Post: 22nd February 2010, 09:30
  4. QPushButton fade effect without animation
    By Kostanev in forum Qt Programming
    Replies: 11
    Last Post: 12th November 2008, 09:46
  5. Replies: 3
    Last Post: 26th September 2006, 12:16

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.