<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Michael :)</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Just delete the properties in the page and cover, and use appWindow.total when you want to read/write on it, and you're set ;)</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Let me know if that works!</div><div class="" style="margin:2px 0px 0px;font-family:arial,sans-serif;font-size:13px">
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/3 Michael Faro-Tusino <span dir="ltr"><<a href="mailto:mfaro-tusino@live.com" target="_blank">mfaro-tusino@live.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">Hi guys,<br><br>This is a very beginner question I know, but still having some troubles.<br><br>I am trying to create a Cover Page for my app, that uses information from the Main Page (note: this is not main.qml but MainPage.qml).<br>
<br>I've attempted to set up property aliases like so:<br><br>//main.qml<br>import QtQuick 1.1<br>import Sailfish.Silica 1.0<br>import "pages"<br>import "cover"<br><br>ApplicationWindow<br>{<br>       id: appWindow<br>
    property string total<br>    property string perPerson<br>    initialPage: MainPage { }<br>    cover: CoverPage{ }<br>}<br><br>//MainPage.qml<br>import QtQuick 1.1<br>import Sailfish.Silica 1.0<br><br>Page{<br>    id: mainPage<br>
    property alias total : appWindow.total <br>    property alias perPerson : appWindow.perPerson<br>}<br><br>//coverPage.qml<br>import QtQuick 1.1<br>import Sailfish.Silica 1.0<br><br><br><br>Page {<br>    id: coverPage<br>
    property alias total: appWindow.total<br>    property alias perPerson: appWindow.perPerson<br>}<br><br>I get errors saying that appWindow cannot be found, due to errors caused by using initialPage: MainPage{} and cover: CoverPage{} in my main.qml.<br>
<br>I don't see why setting Initial and cover the way I did results in errors, (so that is something I'd like explained if possible) and secondly, could someone help me pass the information from MainPage to CoverPage (it updates when a function is executed on MainPage if that makes a difference).<br>
<br>Thanks in advance,<br>Michael<br><br><br>-------------------------<div>Michael Faro-Tusino</div><br><div>Twitter: <a href="http://twitter.com/MFaroTusino" target="_blank">@MFaroTusino</a><br>Website:<a href="http://mynokiablog.com" target="_blank"> My Nokia Blog</a></div>
<div><br><br></div>                                       </div></div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br></blockquote></div><br></div>