<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><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></body>
</html>