<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>I copied the Dialog sample code from the doc:</p>
<p><tt>import QtQuick 2.0</tt><tt><br>
</tt><tt>import Sailfish.Silica 1.0</tt><tt><br>
</tt><tt><br>
</tt><tt>Dialog {</tt><tt><br>
</tt><tt> property string name</tt><tt><br>
</tt><tt><br>
</tt><tt> Column {</tt><tt><br>
</tt><tt> width: parent.width</tt><tt><br>
</tt><tt><br>
</tt><tt> DialogHeader { }</tt><tt><br>
</tt><tt><br>
</tt><tt> TextField {</tt><tt><br>
</tt><tt> id: nameField</tt><tt><br>
</tt><tt> width: parent.width</tt><tt><br>
</tt><tt> placeholderText: "What's your name?"</tt><tt><br>
</tt><tt> label: "Name"</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt>}</tt><br>
<br>
I want the Dialog to modify some properties of `MainPage.qml`
onAccepted, so I instantiated it.<br>
<br>
<tt>import QtQuick 2.0</tt><tt><br>
</tt><tt>import Sailfish.Silica 1.0</tt><tt><br>
</tt><tt><br>
</tt><tt>Page {</tt><tt><br>
</tt><tt> id: page</tt><tt><br>
</tt><tt><br>
</tt><tt> /* some code, some SilicaFlickable, etc. */</tt><tt><br>
</tt><tt><br>
</tt><tt> MyDialog {</tt><tt><br>
</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt>}</tt></p>
<p><tt><br>
</tt>Then I get the following errors in the log:</p>
<p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
p, li { white-space: pre-wra</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">[W] unknown:189 - </span><a
href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189"><span
style=" font-family:'Monospace'; font-size:9pt;
text-decoration: underline; color:#0057ae;">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189</span></a><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">: TypeError: Cannot read property
'backIndicatorDown' of null</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">[W] unknown:194 - </span><a
href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194"><span
style=" font-family:'Monospace'; font-size:9pt;
text-decoration: underline; color:#0057ae;">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194</span></a><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">: TypeError: Cannot read property
'backIndicatorDown' of null</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">[W] unknown:247 - </span><a
href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247"><span
style=" font-family:'Monospace'; font-size:9pt;
text-decoration: underline; color:#0057ae;">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247</span></a><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">: TypeError: Cannot read property
'forwardIndicatorDown' of null</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">[W] unknown:242 - </span><a
href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242"><span
style=" font-family:'Monospace'; font-size:9pt;
text-decoration: underline; color:#0057ae;">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242</span></a><span
style=" font-family:'Monospace'; font-size:9pt;
color:#aa0000;">: TypeError: Cannot read property
'forwardIndicatorDown' of null</span><!--EndFragment--></p>
</p>
<p>The same happens when I push the Dialog directly to the
pageStack. What have I done wrong? Apart from those errors, the
dialogs seems to work correct...<br>
</p>
<pre class="moz-signature" cols="72">--
Marcin</pre>
</body>
</html>