[SailfishDevel] Warning when running under debugger

Andrey Kozhevnikov coderusinbox at gmail.com
Sat Aug 23 07:53:29 UTC 2014


error inside SecondPage.qml on line 35

23.08.2014 13:52, Goncalo Carvalho пишет:
> Hi,
>
> Long time lurker and a QML newbie. I've been playing with the tutorial
> and adding this code to FirstPage.qml
>
>     onStatusChanged: {
>
>          if (status === PageStatus.Active && pageStack.depth === 1) {
>
>              pageStack.pushAttached(Qt.resolvedUrl("SecondPage.qml"))
>
>          }
>
>      }
>
> leads to the below warning when running under the debugger
>
> [W] unknown:35 -
> file:///usr/share/myfirstapp/qml/pages/SecondPage.qml:35:1: QML Page:
> Cannot anchor to an item that isn't a parent or sibling.
>
> It doesn't appear to be an issue when not running under the debugger.
> This is all from Qt Creator.
>
> I understand why QML would complain with the above in general, but
> what I don't get is why isn't always a warning or if there's a better
> way of mimicking the above behaviour?
>
> Many thanks,
>
> Goncalo
>
> PS: Great phone btw. Replaced my N95! Only phone able to do that...
> _______________________________________________
> 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