Qt 6.11 is out! See what's new in the release
blog
Unable to access 'Sample Music' with QDesktopServices::MusicLocation.
General and Desktop
2
Posts
2
Posters
1.1k
Views
1
Watching
-
@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.
-
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?