[Qt-qml] Loader: How to "unset" the sourceComponent ?
Eduardo Fleury
eduardo.fleury at openbossa.org
Mon Apr 19 16:08:04 CEST 2010
On Sat, Apr 17, 2010 at 5:40 AM, <Nigel.Hietala at nokia.com> 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*
--
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100419/95354261/attachment.html
More information about the Qt-qml
mailing list