Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDesktopServices path problem
Qt 6.11 is out! See what's new in the release blog

QDesktopServices path problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    huluyige
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved