If you're developing targeting ubuntu-sdk-14.10 as toolkit, you could use the workaround in the page definition:
property Item __oldContents: null Connections { target: page.head onContentsChanged: { if (page.__oldContents) { page.__oldContents.parent = null; } page.__oldContents = page.head.contents; } }
see also the attached file.
If you're developing targeting ubuntu-sdk-14.10 as toolkit, you could use the workaround in the page definition:
property Item __oldContents: null
onContents Changed: { _oldContents) {
page. __oldContents. parent = null;
page. __oldContents = page.head.contents;
Connections {
target: page.head
if (page._
}
}
}
see also the attached file.