PDA

View Full Version : Setting default icon for all windows / dialogs



steg90
3rd July 2007, 15:34
Hi,

I have used the following piece of code to set icon for main application windows :



QApplication::setWindowIcon(QPixmap("images/configurator.png"));



I thought this would set all icons in my windows, but I still get the default qt icon appearing?

Any help is appreciated.

Regards,
Steve

wysota
5th July 2007, 11:04
Are you sure the relative path is correct (check if the pixmap is not null)? Also make sure to call that method before you create any of the windows you want to have that default icon.