Solved QStandardPaths does not have Videos
-
On Linux QStandardPaths::MoviesLocation gives dir Movies instead of Video. Why?
-
Hallo @JoeCFD
Can you please tell me on which platform did you try it ?
The path on Ubuntu 18.04 LTS which i tried with Qt 5.13 is as below
"/home/pradeep/Videos"
Just one line code to print i tried.qDebug() << QStandardPaths::writableLocation(QStandardPaths::MoviesLocation) << endl;
All the best,.
-
QStandardPaths primarily reads user dirs from xdg-user-dirs
-
Thank you for your reply. On the same platform, but Qt 5.9.5 is used.
-
Hi @JoeCFD
The path dose not change with Qt Version.
In case if u still have issue, can you run the sample code which i have posted and provide the output ?All the best.
-
-
Could be the problem of 5.9.5.
-
Ok. you call the different function. Just noticed it. Yours works. Thanks.