Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] How to get path to photo gallery
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to get path to photo gallery

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 993 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    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!

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxim.prishchepa
      wrote on last edited by
      #2

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

      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jiangcaiyang
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved