AnsweredAssumed Answered

File Dialog shortcuts.pictures crashes a built app although not in App Player

Question asked by paul.haakma on Oct 13, 2015
Latest reply on Oct 13, 2015 by paul.haakma

Hi All

 

Trying to figure out why a crash is happening.

I have a FileDialog object, and have set the folder to 'shortcuts.pictures', which, according to QT's documentation, should point to the directory containing the users pictures or photos. I then have a button that opens the file dialog. This seems to work fine on a windows PC, and seems to work fine when running the app via App Player on an iOS device. But if I build and install the app natively on the iOS device, then pressing the button to call the fileDialog.open() completely crashes the app.

 

Any ideas how to fix this? I'm assuming that the App Player has some build setting that allows access whereas my app doesn't, but where and what could this be?

 

 

FileDialog QML Type | Qt Quick Dialogs 5.5

 

 

    FileDialog {

        id: fileDialog

        selectExisting: true;

        selectMultiple: false;

        folder: shortcuts.pictures;

 

    }

Outcomes