Linux下用Qsound没办法播放声音,QSound::isAvailable()返回的居然是false,我的linux系统具体还要装什么东西吗?求大虾给我讲讲呀!!!!!!
#include <QtGui>
#include <QApplication>
#include <QSound>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
if(QSound::isAvailable() == true)
{
QSound bells("mysounds/apple.mp3");
bells.play();
}
else
{
printf("not available\n");
}
/*Imagewindow window ;
window.show();*/
return app.exec();
}