Are you sure if the path to the image is correct? Could you verify that for example by showing the image in a window?
Are you sure if the path to the image is correct? Could you verify that for example by showing the image in a window?
I have got a file called images.
In this file i have got triple20.png and triple50.png
Here is some code of a MessageBox i use:
[HTML]void MainWindow::info()
{
QMessageBox *mb = new QMessageBox(this);
mb->setWindowIcon(QIcon(":/images/triple20.png"));
mb->setWindowTitle( "Triple/S");
QPixmap pm (":/images/triple50.png");
mb->setIconPixmap( pm );
etc.....
mb->exec();
}[/HTML]
In this MessageBox the setWindowIcon is nothing showing in the taskbar.
The setIconPixmap is showing nicely the triple50.png in the MessageBox window.
How resize windowiconsize of mainwindow
Bookmarks