[SailfishDevel] Interact from other pages with the cover page
Dylan Van Assche
dylan.van.assche at protonmail.com
Mon Aug 29 12:52:05 UTC 2016
Hi guys,
Thanks! Learned today something :)
Dylan
-------- Original Message --------
Subject: Re: [SailfishDevel] Interact from other pages with the cover page
Local Time: August 29, 2016 2:38 PM
UTC Time: August 29, 2016 12:38 PM
From: mail at mattaustin.me.uk
To: dylan.van.assche at protonmail.com,devel at lists.sailfishos.org
On 29 August 2016 at 20:29, Dylan Van Assche
<dylan.van.assche at protonmail.com> wrote:
> If I understand it correctly I need to do the following things:
>
> Create an object in harbour-sailfinder.qml and give it an ID
> Call the object with that ID from my current page (for example:
> MainPage.qml) and assign some data to it.
> Read the object out in CoverPage.qml by his ID
Yep, that sounds right.
In my project, I created 'Client.qml' to use as my python 'API client':
https://github.com/mattaustin/gaussian/blob/qmlexperiment/qml/common/Client.qml
This then gets added to ApplicationWindow, so it's accessible from anywhere:
https://github.com/mattaustin/gaussian/blob/qmlexperiment/qml/silica/main.qml
--
Regards,
Matt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20160829/9802f1a2/attachment.html>
More information about the Devel
mailing list