PDA

View Full Version : Lost message sound



wirasto
27th January 2010, 17:52
I tried custom icon of my critical message. But I lost my critical sound.



QMessageBox msg(this);
//msg.setIcon(QMessageBox::Critical);
msg.setIconPixmap(QPixmap(":/daemon.png"));
msg.setWindowTitle("Gagal");
msg.setText("Test aja");
msg.exec();

squidge
27th January 2010, 18:36
Yes, because a critical sound is only played with a message box tagged as critical. If you use a custom icon, there no idea about what kind of message box you are showing, so no sound is output.