View Single Post
Posts: 60 | Thanked: 23 times | Joined on Jan 2010
#6
I did the following:

Code:
QFileInfo info("ballhit.wav");
QString strFullname = info.absoluteFilePath ();
QMediaPlayer *player = new QMediaPlayer;
player->setMedia(QUrl::fromLocalFile(strFullname));
It does not work...
info.exists()
and
info.isFile()
both returns false...

How did you include your file with the project?