[Qt-interest] QPushButton icon size
Riccardo Roasio
riccardo.roasio at gmail.com
Wed Apr 15 15:51:09 CEST 2009
Hi,
i'm trying to set an icon for a button but i'm not able to set its dimension
properly...
QIcon *calculatorIcon=new QIcon();
calculatorIcon->addFile("/home/citec/development/Qt/Test/icons/calculator.png");
calculatorButton= new QPushButton(*calculatorIcon,"",this);
calculatorButton->setFixedSize(64,64);
What's wrong with this piece of code?
I'm expecting the icon to become 64x64 pixel... (the original icon is 64x64
png image)
Thanks,
Riccardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090415/7097a5f5/attachment.html
More information about the Qt-interest-old
mailing list