Re: [Interest] Binding based on typeof doesn't work any more

2019-10-18 Thread m...@herrdiel.de
eferred using !! to verify if a variable is > defined and not null): > > @ > > text: !!Controller ?  Controller.triedSteps : “” > > @ > >   > > BR > >   > > Fabrice > >   > > *Von:*Interest *Im Auftrag von > *m...@herrdiel.de > *Gesendet:* Do

Re: [Interest] Binding based on typeof doesn't work any more

2019-10-18 Thread Pierre-Yves Siret
Can't you do the load after the setContextProperty? That is what is usually done. Your problem is a usecase for the suggestion I did there : https://bugreports.qt.io/browse/QTBUG-77926 The code would then become : Controller?.successfulSteps ?? "" Le jeu. 17 oct. 2019 à 09:22, a écrit : >

Re: [Interest] Binding based on typeof doesn't work any more

2019-10-17 Thread Fabrice Mousset | GEOCEPT GmbH
Betreff: Re: [Interest] Binding based on typeof doesn't work any more Hi again, I've found a better (JavaScript-) workaround without a dummy property: @ text: { return ((Controller === "undefined" || !Controller) ? "" : Controller.triedSteps) } @ But still: Why has the behav

Re: [Interest] Binding based on typeof doesn't work any more

2019-10-17 Thread Ulf Hermann
> But still: Why has the behavior been (apparently) changed at all in the > first place? Or is it a bug after all? It does sound like a bug. Can you please open a bug report at https://bugreports.qt.io ? I would like to know * What is the last version of Qt your example worked correctly with?

Re: [Interest] Binding based on typeof doesn't work any more

2019-10-17 Thread mail
Hi again, I've found a better (JavaScript-) workaround without a dummy property: @ text: { return ((Controller === "undefined" || !Controller) ? "" : Controller.triedSteps) } @ But still: Why has the behavior been (apparently) changed at all in the first place? Or is it a bug after all? BR