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
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 :
>
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
> 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?
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