I tried to do a simple thing .Using the QT Designer, i put an image ( png format ) on a QPushButton . When i test the form in the Qt Designer , it shows that picture just fine.
But when i write an application using that design ( the ui file ) , the buttons doesn't have the picture on it .
I checked the ui_gui.h file generated by qt and i found this code
Button1->setIcon(icon);
QIcon icon;
icon.addPixmap(QPixmap(QString::fromUtf8("Button-Reload-48x48.png")), QIcon::Normal, QIcon::Off);
Button1->setIcon(icon);
To copy to clipboard, switch view to plain text mode
So ... it shoud have been there... any ideas ? the picture is 48x48.
Bookmarks