[Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread ekke
I need access to Images stored at iPhone to display as QML Image and upload them to REST Service. Qt 5.9.x, iOS 10+ So I added this to Info.plist: NSPhotoLibraryUsageDescription last entry of QStandardPath::PicturesLocation gives me access to assets-library:// and all Images from PhotoLibrary are

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread Michael R Nelson
Interest [mailto:interest-bounces+mnelson=sutron@qt-project.org] On Behalf Of ekke Sent: Wednesday, October 25, 2017 1:43 PM To: interest@qt-project.org Subject: [Interest] Qt iOS - HowTo get access to Images stored at device I need access to Images stored at iPhone to display as QML Image and upl

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread Thiago Macieira
On Wednesday, 25 October 2017 10:42:51 PDT ekke wrote: > QFileInfo then gives me this as filename: > "asset.PNG?id=E8CE839A-29EA-42B2-A8FD-89B57ABEC765&ext=PNG" > and this as path: > "assets-library://asset/asset.PNG?id=E8CE839A-29EA-42B2-A8FD-89B57ABEC765&ex > t=PNG" I'm also getting the correct s

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread ekke
Am 25.10.17 um 21:56 schrieb Thiago Macieira: > On Wednesday, 25 October 2017 10:42:51 PDT ekke wrote: >> QFileInfo then gives me this as filename: >> "asset.PNG?id=E8CE839A-29EA-42B2-A8FD-89B57ABEC765&ext=PNG" >> and this as path: >> "assets-library://asset/asset.PNG?id=E8CE839A-29EA-42B2-A8FD-89B

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread Thiago Macieira
On Wednesday, 25 October 2017 14:14:50 PDT ekke wrote: > You're right - must be blind - Got the QFileInfo and of course then > QFile also can open and read the file > > now only one problem left: HowTo display this file as Image in QML ? I think there's a proper URL format for them. I don't know,

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread ekke
thanks for your detailed explanation changed to source: Qt.resolvedUrl("file://"+currentFile.path) getting QML Image: Cannot open: file://assets-library/asset/asset.PNG hopefully someone knows the correct URL format for iOS assets-library ekke Am 26.10.17 um 00:27 schrieb Thiago Macieira: >

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread Thiago Macieira
On Wednesday, 25 October 2017 16:15:43 PDT ekke wrote: > source: Qt.resolvedUrl("file://"+currentFile.path) You're still forming a URL by concatenation. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-25 Thread ekke
Hi Michael, it's the other way around (C++ to QML) from QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() I create QDir and from entryInfoList() I'm getting QFileInfo and use .filePath() to open QFile, so I can upload the Image to REST Service This works on Android for

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-26 Thread Jeffrey Brendecke
> On 26. Oct 2017, at 13:10, interest-requ...@qt-project.org wrote: > > From: ekke mailto:e...@ekkes-corner.org>> > Subject: Re: [Interest] Qt iOS - HowTo get access to Images stored at device > Date: 26. October 2017 at 08:07:10 GMT+2 > To: "interest@qt-pr

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-26 Thread ekke
Jeffrey, thx at the moment it's ok for me to use QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() Using Objective-C++ Photos framework would give some more comfort, but wouldn't help to access these Photos from QML it seems that there's no way to construct an URL in

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-26 Thread Shawn Rutledge
> On 26 Oct 2017, at 15:12, ekke wrote: > > Jeffrey, > > thx > > at the moment it's ok for me to use > QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() > > Using Objective-C++ Photos framework would give some more comfort, > but wouldn't help to access these Photos

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-26 Thread ekke
Am 26.10.17 um 16:11 schrieb Shawn Rutledge: >> On 26 Oct 2017, at 15:12, ekke wrote: >> >> Jeffrey, >> >> thx >> >> at the moment it's ok for me to use >> QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() >> >> Using Objective-C++ Photos framework would give some more co

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-27 Thread Jeffrey Brendecke
> On 26. Oct 2017, at 16:11, Shawn Rutledge wrote: > > >> On 26 Oct 2017, at 15:12, ekke wrote: >> >> Jeffrey, >> >> thx >> >> at the moment it's ok for me to use >> QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() >> >> Using Objective-C++ Photos framework would

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-27 Thread Shawn Rutledge
> On 26 Oct 2017, at 17:02, ekke wrote: > > Am 26.10.17 um 16:11 schrieb Shawn Rutledge: >>> On 26 Oct 2017, at 15:12, ekke >>> wrote: >>> >>> Jeffrey, >>> >>> thx >>> >>> at the moment it's ok for me to use >>> QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() >>>

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-27 Thread ekke
Am 27.10.17 um 11:01 schrieb Shawn Rutledge: >> On 26 Oct 2017, at 17:02, ekke wrote: >> >> Am 26.10.17 um 16:11 schrieb Shawn Rutledge: On 26 Oct 2017, at 15:12, ekke wrote: Jeffrey, thx at the moment it's ok for me to use QStandardPaths::standardLo

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-30 Thread ekke
Shawn, you're right: I can use the QML FileDialog http://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html from my QtQuickControls2 APP without the need to add +widgets. I was confused because doc for Qt.labs FileDialog https://doc.qt.io/qt-5/qml-qt-labs-platform-filedialog.html is mentioning tha