PDA

View Full Version : How do you set a "window icon"



Cruz
16th February 2009, 18:12
You know that little icon that appears in the top left corner of a window, or in the task bar when the window is minimized, or when you create a link to the application? How do you set that?

talk2amulya
16th February 2009, 18:16
windowIcon : QIcon

This property holds the widget's icon.

This property only makes sense for windows. If no icon has been set, windowIcon() returns the application icon (QApplication::windowIcon()).

Access functions:

*
QIcon windowIcon () const
*
void setWindowIcon ( const QIcon & icon )

See also windowIconText and windowTitle.

a function of QWidget class

spirit
16th February 2009, 18:20
take a look at this article Setting the Application Icon (http://doc.trolltech.com/4.4/appicon.html)