Nominate our 2022 Qt Champions!

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

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


    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.

  • 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?

Log in to reply