[SOLVED] How to get Object's pointer instantiated in QML engine
Solved
QML and Qt Quick
-
wrote on 18 Jul 2016, 10:21 last edited by Kofr
I have
qmlRegisterType<DataModel>("one.DataModel", 1, 0, "DataModel");
and I instance this in QML
DataModel { }
I need to get pointer to the istantiated object in C++ side. BUT I do not want to use aproach with use of
findChild()
.
How to get a pointer?
2/2