Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED] How to get path to photo gallery



  • Hi @All !
    How can I get path to default photos gallery with QML,
    Is it possible ? (Android, Win, Linux, Mac, etc)
    Can I use as default path QDesktopServices::PicturesLocation (how can I use this path owed QML?)?
    ps: This is need for default path for OpenFileDialog
    Tnx a lot for feedbacks!



  • I create a property at the C++ class and get path at @QStandardPaths::standardLocations(QStandardPaths::PicturesLocation);@



  • Well, the pure QML may not help you in any way, I am looking for solutions too.
    As an alternate, QStandardPaths::standardLocations(QStandardPaths::PicturesLocation); sounds good.


Log in to reply