Good evening everbody:
I’m really new in Qt, and I like it so much, there are many reasons why. In fact I’ve built a simple app type widget. This app consists in a game in which system randomly choose a number in order to be guessed by a player. Everything goes fine. But I need add some sound (wav files) to my app, according the situation (You all know far more than me). For short this is my line of code to add some sound:
QString sonido=“audio/newGame.wav”;
QSound player(sonido);
player.play();
And this is the message error i get:
E:\QtFilesPros\wtnBoy\wingame.cpp:77: error: undefined reference to `_imp___ZN6QSoundC1ERK7QStringP7QObject’
May I get your help? Thanks a million for your support. What can I do to solve this problem?
↧