lundi 11 juillet 2016

Full path to file [QT]


I make a video player and i need a full path to file that i'll open through QFileDialog. How to do it? Is there any functions for this in Qt? My present algorithm gives me only name of the file, not a full path. My code for now:

void videoWindow::handleFile()
{
    *filename = QFileDialog::getOpenFileName();
    if (*filename != "D:\фото\video\P1150278.MOV" | *filename != "")
    {
    video_enable(videoWid, *filename);
    }
}

Aucun commentaire:

Enregistrer un commentaire