← Back to team overview

ubuntu-phone team mailing list archive

Re: [QML] TypeError on delegate remove

 

Try to move this line:
    anchors { left: parent.left; right: parent.right }
from SendComponent.qml to Repeater, and access directly to its id,
something like:
    anchors { left: myRepeater.left; right: myRepeater.right }

Seems that Repeater sets "parent" property of item to null before deletion.

2016-01-28 13:08 GMT+03:00 Sam Bull <sam.hacking@xxxxxxxx>:

> On Thu, 2016-01-28 at 12:56 +0300, Roman Shchekin wrote:
> > Can you provide full example? Seems that you are doing something
> > wrong.
>
> The component is here:
> http://bazaar.launchpad.net/~dreamsorcerer/bitcoin-app/python/view/head
> :/qml/SendComponent.qml#L6
>
> Which has a delete action a few lines down:
> http://bazaar.launchpad.net/~dreamsorcerer/bitcoin-app/python/view/head
> :/qml/SendComponent.qml#L17
>
> And, the component is used as a delegate here:
> http://bazaar.launchpad.net/~dreamsorcerer/bitcoin-app/python/view/head
> :/qml/SendPage.qml#L51

References