Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QStandardPaths does not have Videos
On Linux QStandardPaths::MoviesLocation gives dir Movies instead of Video. Why?
Pradeep P N last edited by Pradeep P N
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
Just one line code to print i tried.
qDebug() << QStandardPaths::writableLocation(QStandardPaths::MoviesLocation) << endl;
All the best,.
Bonnie last edited by
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.
Pradeep P N last edited by
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.
JonB last edited by JonB
Mine gives me
Could be the problem of 5.9.5.
JoeCFD last edited by JoeCFD
Ok. you call the different function. Just noticed it. Yours works. Thanks.