Momergil
19th February 2014, 19:23
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,
qDebug() << QStandardPaths::standardLocations(QStandardPaths:: DownloadLocation);
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
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,
qDebug() << QStandardPaths::standardLocations(QStandardPaths:: DownloadLocation);
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