[Qt-interest] Animation effect of a .gif file set to QPushButton

Chandru... sekarwagmare at gmail.com
Fri Jul 3 12:15:27 CEST 2009


qt wont support .gif files ....

GIF support is disabled in Qt by default because the decompression algorithm
used by GIF files was patented in some countries where software patents are
recognized. We believe that this patent has now expired worldwide. To enable
GIF support in Qt, pass the -qt-gif command-line option to the configure
script or set the appropriate option in the Qt installer.

from C++ GUI Programming with Qt 4
By Jasmin Blanchette, Mark Summerfield

On 7/3/09, Santhosh Y <santhosh at softjin.com> wrote:
>
> Hi,
>
> I have an animated (attached)gif file. I have set this to a PushButton icon
> like in the following :-
>
>  QPushButton* progStatus = new QPushButton(this);
>  progStatus->setIcon(QIcon((":/images/Cyclic_animation_big.gif")));
>  progStatus->setIconSize(QSize(226*widthFactor, 12));
>  progStatus->setFlat(true);
>
>
> But I am not able to see the animation effect in the GUI.
>
> Please tell me some body to see animation effect.
>
>
> --
> ----------------------------------------------------
> Y Santhosh Kumar
> Senior Software Engineer
> SoftJin Technologies Private Limited
> Unit No. 102, Mobius Tower,
> I Floor, SJR I - Park,
> EPIP, White Field,
> Bangalore - 560066, India
> U : www.softjin.com
> E : santhosh at softjin.com
> T : +91-80-41779999
> M : +91-9740535265
> ----------------------------------------------------
>
>
>
> Business Disclaimer
> ____________________________________________________________
> This e-mail message and any files transmitted with it are intended solely
> for  the use  of the  individual or entity  to which they  are  addressed.
> It
> may  contain confidential,  proprietary or legally  privileged
>  information.
> If  you  are  not  the  intended recipient please be advised that you have
> received  this  message in error and any use is strictly prohibited. Please
> immediately  delete it  and all copies of it from your system, destroy any
> hard  copies  of  it and  notify  the  sender  by return mail. You must
> not,
> directly or indirectly, use,  disclose,  distribute, print, or copy any
> part of
> this message if you are not the intended recipient.
> ___________________________________________________________
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>


-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090703/38297c22/attachment.html 


More information about the Qt-interest-old mailing list