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. Acces the WindowsPhone Pictures Folder

Acces the WindowsPhone Pictures Folder

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 403 Views
  • 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.
  • B Offline
    B Offline
    banana.joe
    wrote on last edited by
    #1

    Hello everybody!

    Im trying do acces the ,,Pictures"-Folder on my WIndowsPhone 8.1 mobile. For this purpose I wrote a small programm to get the absolute path for this folder. On a Windows 10 machine I get with the following code the correct path:

     str_list = QStandardPaths::standardLocations(QStandardPaths::PicturesLocation);
     str = str_list.at(0); 
    
        text->setProperty("text1", QVariant(QStandardPaths::standardLocations(QStandardPaths::PicturesLocation)));
        text->setProperty("text2", QVariant(QStandardPaths::displayName(QStandardPaths::PicturesLocation)));
        text->setProperty("text3", QVariant(QCoreApplication::applicationDirPath()));
        text->setProperty("text4", QVariant(QDir::currentPath()));
        text->setProperty("text5", QVariant(QDir::root().absolutePath()));
        text->setProperty("text6", QVariant(str));
    
    

    On my Windows Phone 8.1 I only get:
    text2: Pictures
    text3: D:/WPSystem/Apps/WindowsApps/8a451af-f162-445d-a
    text4: D:/WPSystem/Apps/WindowsApps/8a451af-f162-445d-a
    text5: D:/WPSystem/Apps/WindowsApps/8a451af-f162-445d-a

    text1 and text 6 are not displayed (the absolute path for the pictures folder).

    Is there a way to get access to it from Qt (qml or C++) ?

    thanks!

    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