Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QDesktopServices path problem



  • Hi,

    I am trying to launch system player using QDesktopServices
    @QDesktopServices::openUrl(QUrl("file:///C:/projects/project_name/test.ram"));@

    here, what is important is using the scheme "file://", to avoid calling web Browser.

    i think that, to use the scheme "file://", i have to put an absolute path. But for symbian, i dont have the absolute path, i just got relative paths like "qml/xxx.png".

    anyone has ideas? thanks



  • I think you have to use QUrl::fromLocalFile to form your URL.


Log in to reply