Re: [Interest] Should onImageSaved give a URL?

2020-01-23 Thread Thiago Macieira
On Thursday, 23 January 2020 09:22:48 PST Jason H wrote: > I really want to do things the "right way" but what that way is, is clear as > mud. Since prefixing "file://" is so wrong, and Qt.resolvedUrl() is not > doing what I need, please share the proper method? I would if I knew. I don't know the

Re: [Interest] Should onImageSaved give a URL?

2020-01-23 Thread Jason H
> On Wednesday, 22 January 2020 12:52:41 PST Jason H wrote: > > Wow. So in the intervening tie between replies I did some searching and > > thought this was a face-palm moment, but not event the experts know about > > Qt.resolvedUrl() > > https://doc.qt.io/qt-5/qml-qtqml-qt.html#resolvedUrl-method

Re: [Interest] Should onImageSaved give a URL?

2020-01-23 Thread Thiago Macieira
On Wednesday, 22 January 2020 12:52:41 PST Jason H wrote: > Wow. So in the intervening tie between replies I did some searching and > thought this was a face-palm moment, but not event the experts know about > Qt.resolvedUrl() > https://doc.qt.io/qt-5/qml-qtqml-qt.html#resolvedUrl-method image.souc

Re: [Interest] Should onImageSaved give a URL?

2020-01-23 Thread Fabrice Mousset | GEOCEPT GmbH
ot;Jérôme Godbout" > Cc: Thiago Macieira ; interest@qt-project.org > Betreff: Re: [Interest] Should onImageSaved give a URL? > > Wow. So in the intervening tie between replies I did some searching and > thought this was a face-palm moment, but not event the experts know > abo

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jason H
m for another time. I'm still not sure why onImageCaptured isn't using a url? > Sent: Wednesday, January 22, 2020 at 3:07 PM > From: "Jérôme Godbout" > To: "Thiago Macieira" , "interest@qt-project.org" > > Subject: Re: [Interest] Should onImag

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jérôme Godbout
f Of Thiago Macieira Sent: January 22, 2020 3:00 PM To: interest@qt-project.org Subject: Re: [Interest] Should onImageSaved give a URL? On Wednesday, 22 January 2020 11:00:41 PST Jason H wrote: > > > onImageSaved: { > > > var url = "file://"+path; > > > > NE

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Thiago Macieira
On Wednesday, 22 January 2020 11:00:41 PST Jason H wrote: > > > onImageSaved: { > > > var url = "file://"+path; > > > > NEVER construct a URL like this. > > Then how should it be done? I don't know about QML/JS, but in C++ use QUrl::fromLocalFile. There must be something equivalent in JS. --

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jason H
> Sent: Wednesday, January 22, 2020 at 1:56 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Should onImageSaved give a URL? > > On Wednesday, 22 January 2020 10:09:20 PST Jason H wrote: > > When assigning an image element to

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Thiago Macieira
On Wednesday, 22 January 2020 10:09:20 PST Jason H wrote: > When assigning an image element to an image capted from a Camera, it is not > sufficient to just assign the `path` to the source of the Image element > that is to display it: qrc:/main.qml:100:4: QML Image: Cannot open: > qrc:/var/mobile/C

[Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jason H
When assigning an image element to an image capted from a Camera, it is not sufficient to just assign the `path` to the source of the Image element that is to display it: qrc:/main.qml:100:4: QML Image: Cannot open: qrc:/var/mobile/Containers/Data/Application/8BD0A3CA-74AA-4599-BCF5-E1863AEA688F