[SailfishDevel] Interact from other pages with the cover page
Andrey Kozhevnikov
coderusinbox at gmail.com
Mon Aug 29 12:36:05 UTC 2016
Properties of root object are accessible for it childrens. Childrens of
object are not accessible.
------ Исходное сообщение ------
От: "Michael Fuchs" <michfu at gmx.at>
Кому: devel at lists.sailfishos.org
Отправлено: 29.08.2016 19:21:15
Тема: Re: [SailfishDevel] Interact from other pages with the cover page
>Correction in SomeWherElse.qml
>
>Am 29.08.2016 um 14:19 schrieb Michael Fuchs:
>>Hi Dylan,
>>
>>Children from ApplicationWindow are AFAIK accessible everywhere.
>>
>>harbour-example.qml:
>>
>>ApplicationWindow {
>>
>>...
>> MyObject {
>> id: mo
>> someString: "Eins"
>>
>> function test(){}
>> }
>>...
>>}
>>
>>CoverPage.qml:
>>
>>CoverBackground {
>> CoverPlaceholder {
>> text: mo.someString
>> }
>> CoverActionList {
>> CoverAction {
>> iconSource: "image://theme/icon-cover-play"
>> onTriggered: mo.test()
>> }
>> }
>>}
>>
>>SomeWhereElse.qml
>>
>>Page {
>>...
>>onEvent: mo.someString = "Zwei"
>>...
>>}
>>
>>greetz
>>
>>
>>
>>Am 29.08.2016 um 14:03 schrieb Dylan Van Assche:
>>>Hi devs,
>>>
>>>I'm rebuilding Sailfinder and I'm looking for a better way for my
>>>interaction between the cover and other pages.
>>>In the old version I let the cover play the man in middle when Python
>>>transfered the data to the current QML page but it was a messy
>>>solution.
>>>I looked at the source code of different Sailfish OS projects but
>>>nothing that really looked simple for my purpose.
>>>
>>>I read about 'Connections' in QML but I can't figure out if I can use
>>>that QML type to let the page interact with the cover. I want to
>>>avoid
>>>C++ as much as possible in order to create a non-arch package.
>>>Maybe someone here who can help?
>>>
>>>Dylan
>>>
>>>
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>SailfishOS.org Devel mailing list
>>>To unsubscribe, please send a mail to
>>>devel-unsubscribe at lists.sailfishos.org
>>>
>>_______________________________________________
>>SailfishOS.org Devel mailing list
>>To unsubscribe, please send a mail to
>>devel-unsubscribe at lists.sailfishos.org
>_______________________________________________
>SailfishOS.org Devel mailing list
>To unsubscribe, please send a mail to
>devel-unsubscribe at lists.sailfishos.org
More information about the Devel
mailing list