On Tue, 20 Apr 2010 12:08:04 am ext Eduardo Fleury wrote:
> On Sat, Apr 17, 2010 at 5:40 AM,
> <[email protected]<mailto:[email protected]>> wrote: You set
> it to "".
> e.g. Loader {
>       sourceComponent: myCondition ? myComponent : ""
> }
> I cannot do that, sourceComponent expects a QDeclarativeComponent*, not a
> QString.
> 
> 
> fleury guararapes tmp $ qml teste2.qml
> Wall startup time: 9
> file:///home/fleury/tmp/teste2.qml:22: Unable to assign QString to
> QDeclarativeComponent*

We need to allow:

Loader {
      sourceComponent: myCondition ? myComponent : undefined
}

Will do this today.

-- 
Martin
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to