#include <QSound>
QSound 只能播放WAVE格式的
一、播放功能:两种方法
1)Public Slots
void play () // public slot inherited from QObject
实现方法(对象实例化):
QSound *sound=new QSound(音频路径及音频文件); // (参照:void QSound::play () [slot])
this->sound->play();
2)Static Public Members
void play ( const QString & filename ) //