Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.0
-
None
Description
Arguments for methods are not accepted if you try to pass the pointer to QObject/QGraphicsItem-derived class. For example:
>>
function setModel(aModel)
ListModel
{ id: lm }ListView
{ id: lv } Component.onCompleted: lv.setModel(lm);
>>
will cause
>>
test.qml:15: TypeError: incompatible type of argument(s) in call to setModel(); candidates were
setModel(QVariant)
>>