hello,
i would like understand qt, so i post here.
rmq: QT : 5.7
if i setProperty class in my qml.
in this class, i have method Q_INVOKABLE what we return a pointeur in class.
like this with no var in my qml:
if (toto.test()!=NULL)
toto.test().x() //method Q_INVOKABLE x()
work but , the qml want manage the cobject returned by test()
if i quit the qml page.
qt would like delete the object returned by test() why??
i would like juste interacting C++ and QML.
what is the best method for use this? (no manage memory who i return in my q_INVOKABLE function)
thank's for your reply![]()
Bookmarks