Clone item from ObjectModel
Unsolved
QML and Qt Quick
-
Hi mates
I have an
ObjectModel
then I get an item usingmodel.get(someIndex)
. Now my question is - how to clone the item, and display freshly created one in other place?loader.sourceComponent = itemFromModel;
returnsError: Cannot assign QObject* to QQmlComponent*
, whileQt.createQmlObject()
andQt.createComponent()
are unsuitable for the task. I'm out of ideas what I can use.