Results 1 to 2 of 2

Thread: Lost message sound

  1. #1
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Lost message sound

    I tried custom icon of my critical message. But I lost my critical sound.

    Qt Code:
    1. QMessageBox msg(this);
    2. //msg.setIcon(QMessageBox::Critical);
    3. msg.setIconPixmap(QPixmap(":/daemon.png"));
    4. msg.setWindowTitle("Gagal");
    5. msg.setText("Test aja");
    6. msg.exec();
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lost message sound

    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.

Similar Threads

  1. Focus lost
    By franco.amato in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2010, 22:07
  2. Completely lost!!!
    By Zuks in forum Newbie
    Replies: 4
    Last Post: 2nd December 2009, 09:58
  3. Replies: 4
    Last Post: 12th October 2008, 13:47
  4. MP3 Sound / OGG Sound Play on GUI
    By patrik08 in forum Newbie
    Replies: 3
    Last Post: 1st September 2006, 19:01
  5. Lost widget
    By anli in forum Qt Programming
    Replies: 6
    Last Post: 29th July 2006, 19:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.