//QString url; url = ":/new/prefix1/a.mp3"; //Phonon::MediaObject *music; music = Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource(url)); //file exists, therefore exists is returned to the console if(QFile::exists(url)) qDebug("exists"); else qDebug("doesn't"); //works if user selects the file: url = QFileDialog::getOpenFileName(this, tr("Select Music Files"), QDesktopServices::storageLocation(QDesktopServices::MusicLocation)); music->setCurrentSource(url); music->play(); //no error is being outputed qDebug(music->errorString().toAscii());