In Qt 4.5, the methods you are looking for are called
QApplication::setWindowIcon(const QIcon &)
or
QWidget::setWindowIcon(const QIcon &).
You can use each image format for the icons supported by Qt (e.g. BMP, GIF, JPG, PNG, TIFF, XPM, ...).
You might want to see the Qt documentation at http://doc.qtsoftware.com/4.5/index.html or use the Qt Assistant.
Hope this helps.
source share