QMediaPlayer and UNC paths

  • I'm trying to load a video from a network using UNC paths.
    The code snippet is the following one:

    projectDirectory = QFileDialog::getExistingDirectory (this,
                                                    tr ("Choose project folder (sensor + video data"),
                                                    QDir::homePath(), QFileDialog::ShowDirsOnly);
    QDir dir(projectDirectory);
    QStringList test = dir.entryList();
    qDebug () << projectDirectory << "contains:" << endl << test;

    The code snippet works for a local file but doesn't work when the path begins with //.

    Example output:

    "//m4800/Partage/111" contains: 
    (".", "..", "HandBrake.txt", "sensors.csv", "video.mov")
    DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.