Results 1 to 7 of 7

Thread: Animation effect of gif in QPushButton

Hybrid View

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

    Default Re: Animation effect of gif in QPushButton

    But QMovie will work for QLabel not for QPushButton.

    I want to set the .gif as icon on QPushButton and it should be animated.
    Well, then, subclass QPushButton and add a QLabel member to it.
    Problem solved.
    ==========================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.

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

    Default Re: Animation effect of gif in QPushButton

    Quote Originally Posted by high_flyer View Post
    Well, then, subclass QPushButton and add a QLabel member to it.
    Problem solved.
    Can u give small sample code for this..

    Thanks
    Santosh

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

    Default Re: Animation effect of gif in QPushButton

    I'll tell you what - you try first.
    If you get in to trouble, post your code, and your question, and I'll help.
    Ok?
    ==========================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. Removing pressed effect from a QPushButton
    By Luc4 in forum Qt Programming
    Replies: 3
    Last Post: 14th August 2010, 12:43
  2. 3D Effect
    By andzoff in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2010, 12:52
  3. Replies: 0
    Last Post: 22nd February 2010, 10:30
  4. QPushButton fade effect without animation
    By Kostanev in forum Qt Programming
    Replies: 11
    Last Post: 12th November 2008, 10:46
  5. Replies: 3
    Last Post: 26th September 2006, 13: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
  •  
Qt is a trademark of The Qt Company.