This post has been edited 1 times, last edit by "alexisdm" (Sep 7th 2010, 9:17am)
|
|
Source code |
1 2 3 4 5 6 7 |
// In the main function
QDir::setSearchPaths("images", QStringList(QApplication::applicationDirPath()));
...
QMessageBox msgBox(QMessageBox::Question, "WindowTitle","Do you want to Proceed?",QMessageBox::Yes | QMessageBox::No, 0 );
msgBox.setWindowIcon(QPixmap("images:image.jpg"));
msgBox.setDefaultButton(QMessageBox::No);
msgBox.exec();
|