System Sounds
-
I can get a beep out of my application using QApplication::beep().
On Windows at least the system has a gamut of different event types and associated sounds. I'd like to be able to do something like:
QApplication::systemSound(Qt::EventType::CriticalStop)I realise that using names specific to Windows won't fly, but I was wondering if Qt has something that's a cross platform Qt analogue that I failed to find in the docs.
Thanks, David
-
Hi,
AFAIK, no, you did not miss anything.
The function comes from a time where there weren't that many fancy sounds :-)
Depending on what you would like to do, QSoundEffect could be a replacement but you will have to provide your own sounds.
-
Hi,
AFAIK, no, you did not miss anything.
The function comes from a time where there weren't that many fancy sounds :-)
Depending on what you would like to do, QSoundEffect could be a replacement but you will have to provide your own sounds.
-
I assume QApplication::beep() is just sending
\ato the console. This would also the reason why this cannot be expanded to other system sounds.