1. 程式人生 > >Qt工程中音訊資原始檔的路徑報錯

Qt工程中音訊資原始檔的路徑報錯

void Player::play(QString filePath)
{  
 player->setMedia(QUrl(filePath));
   player->play();
}
    Player *player=new  Player();
    player->play("qrc:/fecix/sound/已簽收.wav");