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

Santhosh Y santhosh at softjin.com
Fri Jul 3 11:20:30 CEST 2009


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.
___________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.gif
Type: image/gif
Size: 16414 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090703/7a95db8c/attachment.gif 


More information about the Qt-interest-old mailing list