QT 播放资源中的声音文件

m_play = new MediaPlay(this);
m_play->setMedia("qrc:/music/run.MP3"); //先将run.MP3添加到 QRC 资源中
m_play->play();

posted @ 2021-02-10 20:26  tonny1000  阅读(210)  评论(0)    收藏  举报