<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I don't really understand your point. I took the example straight
from the docs for Dialog. And if you mean pushing this directly
onto the pageStack via Qt.resolvedUrl, the errors are just the
same.<br>
</p>
<pre class="moz-signature" cols="72">Marcin</pre>
<div class="moz-cite-prefix">On 02.08.2016 12:18, Андрей Кожевников
wrote:<br>
</div>
<blockquote
cite="mid:CAFbg4Ufu4Kgrvby17E=LXCuNBTuFuXnMuJ38+n2j9C3+G8+b2Q@mail.gmail.com"
type="cite">
<p dir="ltr">Open help article and check how dialog header should
be used. </p>
<p dir="ltr">02 авг. 2016 г. 14:36 пользователь "Marcin
Mielniczuk" <<a moz-do-not-send="true"
href="mailto:marmistrzmar@gmail.com">marmistrzmar@gmail.com</a>>
написал:<br>
><br>
> Hi,<br>
><br>
> Doesn't help for me. And now the column and the header
overlap.<br>
><br>
><br>
> On 02.08.2016 10:32, Michael Neufing wrote:<br>
>><br>
>> Hi Marcin,<br>
>><br>
>> you should not put DialogHeader into a Column but
directly into the Dialog.<br>
>> That should solve your problem.<br>
>><br>
>> Br,<br>
>> Michael<br>
>><br>
>> Am 02.08.2016 10:29, schrieb Marcin Mielniczuk:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> I copied the Dialog sample code from the doc:<br>
>>><br>
>>> import QtQuick 2.0<br>
>>> import Sailfish.Silica 1.0<br>
>>><br>
>>> Dialog {<br>
>>> property string name<br>
>>><br>
>>> Column {<br>
>>> width: parent.width<br>
>>><br>
>>> DialogHeader { }<br>
>>><br>
>>> TextField {<br>
>>> id: nameField<br>
>>> width: parent.width<br>
>>> placeholderText: "What's your name?"<br>
>>> label: "Name"<br>
>>> }<br>
>>> }<br>
>>> }<br>
>>><br>
>>> I want the Dialog to modify some properties of
`MainPage.qml`<br>
>>> onAccepted, so I instantiated it.<br>
>>><br>
>>> import QtQuick 2.0<br>
>>> import Sailfish.Silica 1.0<br>
>>><br>
>>> Page {<br>
>>> id: page<br>
>>><br>
>>> /* some code, some SilicaFlickable, etc. */<br>
>>><br>
>>> MyDialog {<br>
>>><br>
>>> }<br>
>>> }<br>
>>><br>
>>> Then I get the following errors in the log:<br>
>>><br>
>>> p, li { white-space: pre-wra<br>
>>><br>
>>> [W] unknown:189 -<br>
>>>
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189</a>
[1]:<br>
>>> TypeError: Cannot read property 'backIndicatorDown'
of null<br>
>>><br>
>>> [W] unknown:194 -<br>
>>>
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194</a>
[2]:<br>
>>> TypeError: Cannot read property 'backIndicatorDown'
of null<br>
>>><br>
>>> [W] unknown:247 -<br>
>>>
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247</a>
[3]:<br>
>>> TypeError: Cannot read property
'forwardIndicatorDown' of null<br>
>>><br>
>>> [W] unknown:242 -<br>
>>>
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242</a>
[4]:<br>
>>> TypeError: Cannot read property
'forwardIndicatorDown' of null<br>
>>><br>
>>> The same happens when I push the Dialog directly to
the pageStack.<br>
>>> What have I done wrong? Apart from those errors,
the dialogs seems to<br>
>>> work correct...<br>
>>><br>
>>> -- <br>
>>> Marcin<br>
>>><br>
>>><br>
>>> Links:<br>
>>> ------<br>
>>> [1]
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189</a><br>
>>> [2]
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194</a><br>
>>> [3]
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247</a><br>
>>> [4]
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242">file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242</a><br>
>>> _______________________________________________<br>
>>> SailfishOS.org Devel mailing list<br>
>>> To unsubscribe, please send a mail to <a
moz-do-not-send="true"
href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
>><br>
>> _______________________________________________<br>
>> SailfishOS.org Devel mailing list<br>
>> To unsubscribe, please send a mail to <a
moz-do-not-send="true"
href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
><br>
><br>
> -- <br>
> Marcin<br>
><br>
><br>
> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br>
> To unsubscribe, please send a mail to <a
moz-do-not-send="true"
href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</body>
</html>