[Qt-interest] how to enable sound in Qt4?

Srdjan Todorovic todorovic.s at googlemail.com
Mon Feb 16 16:47:23 CET 2009


Hi,

2009/2/16 Chaitral <>:
>  Can anyone please tell me how to enable audible signals in QT4?
> I have tried following:
>
> #include <QApplication>
> #include <qsound.h>
> #include <QtGui>
>
> int main(int argc, char *argv[])
> {
>     QApplication app(argc, argv);
>     app.beep();
> }
>
>  The program is getting compiled successfully, but there is no sound while
> execution. I have also tried printf("a") but that is also not providing any
> sound.

Why do you think printf("a") would give you any sound at all?

Would this help you?
http://lists.trolltech.com/qt-interest/2007-01/thread00147-0.html

(There are many other interesting results on google... please take a look)

Srdjan



More information about the Qt-interest-old mailing list