Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] How to get the app data path?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to get the app data path?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.0k 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
    MathArtist
    wrote on last edited by
    #1

    Hello Everybody.

    I'm looking for a way to get the app data path in android from QML. (or C++)

    I made some test with the camera component and, after taking a picture, the image path was like :

    @
    /data/data/org.qtproject.example.test/files/IMG_00000003.jpg
    @

    is there a function to get this path?
    Returning something like "/data/data/org.qtproject.example.test/"

    Best Regards

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      "QStandardPaths":http://doc.qt.io/qt-5/qstandardpaths.html should help with that

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MathArtist
        wrote on last edited by
        #3

        Thank you SGaist,
        Very useful info.
        Regards

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          If that answers your problem then please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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