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
> 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
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
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
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
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
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.
--
> 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
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
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
10 matches
Mail list logo