Re: [Ubuntu-phone] Can't set value of Label inside

2014-07-23 Thread Michael Zanetti
On Wednesday 23 July 2014 12:54:10 Sam Bull wrote: > On mer, 2014-07-23 at 13:47 +0200, Michael Zanetti wrote: > > a) By the time Component.onCompleted is called. the PopupUtils.open() > > hasn't been called yet. So the popover doesn't exist > > Ah, didn't realise the inner component wasn't even c

Re: [Ubuntu-phone] Can't set value of Label inside

2014-07-23 Thread Roman Shchekin
Michael is right, both issues can be found in code. P.S. Sam, let me give you a little advice - try to write working QML code by hand, and only then use your tools for automatic generation! BR, Roman. 2014-07-23 15:47 GMT+04:00 Michael Zanetti : > > 2 issues: > > a) By the time Component.onCom

Re: [Ubuntu-phone] Can't set value of Label inside

2014-07-23 Thread Sam Bull
On mer, 2014-07-23 at 12:54 +0100, Sam Bull wrote: > > Solution: create a property somewhere (outside the Popover Component), like > > this: > > Unfortunately, this is what I was hinting at when I said the label is > unable to access anything outside the component. I tried exactly this, > and the

Re: [Ubuntu-phone] Can't set value of Label inside

2014-07-23 Thread Sam Bull
On mer, 2014-07-23 at 13:47 +0200, Michael Zanetti wrote: > a) By the time Component.onCompleted is called. the PopupUtils.open() hasn't > been called yet. So the popover doesn't exist Ah, didn't realise the inner component wasn't even constructed until PopupUtils.open(). > Solution: create a pr

Re: [Ubuntu-phone] Can't set value of Label inside

2014-07-23 Thread Michael Zanetti
2 issues: a) By the time Component.onCompleted is called. the PopupUtils.open() hasn't been called yet. So the popover doesn't exist b) Even if you'd change the order, I don't think you can reach inside the Popover's context... You could open 10 of those popovers, which label should be addres