Hello!
I'm learning about the usage of the new Qt 5 class QStandardPaths by reading Qt Assistant, etc.. For curiosity, I decided to get the list of my computer's folders when I call QStandardPaths::standardLocations(StandartLocation ) to see what I got when, for my surprise, after asking for retrieving my downloads folder,
Qt Code:
qDebug() << QStandardPaths::standardLocations(QStandardPaths::DownloadLocation);To copy to clipboard, switch view to plain text mode
I received my documents folder ("C:/Users/Endrigo/Documents") instead of my actual downloads folder ("C:/Users/Endrigo/Downloads"). Isn't this a bug in this class? I called the functions multiple times and neither once the correct folder path was given (not forgetting that the result of standartLocations is a QStringList, so no problem if there were other options apart from it insofar "C:/Users/Endrigo/Downloads" was given).
Thanks,
Momergil
Bookmarks