[Qt-qml] Custom data type in slot parameter

Robert Voinea rvoinea at gmail.com
Mon Oct 25 13:25:37 CEST 2010


Hi

Thanks a lot! 
That did the trick!

[snip] 

> I think you are probably running into
> http://bugreports.qt.nokia.com/browse/QTBUG-13047, which should be fixed
> for 4.7.1 (commit 1bd2eb8ecd6b2377132beaa789c8b3b8a6f544d9). In the
> meantime, changing
> 
> v.setValue(b);
> 
> to
> 
> v.setValue(qobject_cast<QObject*>(b));
> 
> might get things working (though I haven't tested to confirm).

-- 
Robert Voinea
IT Specialist
+4 0740 467 262

Don't take life too seriously. You'll never get out of it alive.
(Elbert Hubbard)



More information about the Qt-qml mailing list