Acces the WindowsPhone Pictures Folder



  • 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.