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. Unable to access 'Sample Music' with QDesktopServices::MusicLocation.
Qt 6.11 is out! See what's new in the release blog

Unable to access 'Sample Music' with QDesktopServices::MusicLocation.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • V Offline
    V Offline
    vivekmalik2466
    wrote on last edited by
    #1

    @searchLocation = QDesktopServices::storageLocation(QDesktopServices::MusicLocation);

    qDebug()<<searchLocation;
    @

    it gives me "C:\Users\Administrator.VIVEK-PC\Music"

    and with this i am able to search in this music folder

    but at other side i am unable to access the file which are in C:\Users\Public\Music or we can say in 'Sample Music'.

    if any how i also get "C:\Users\Public\Music" then i am able to do apply my search on this also.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      The desktop services ask your OS (Windows in this case). The dir you post in Users doesn't look like a standard Windows dir, so why would Qt or Windows know about it?

      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