Dynamic create and delete Object
My Question ist:
I pass and store the created Object in C++. Can I delete the passed object without memoryleak or do I have to delete the object in Qml (like in the tutorial)?
I think you can delete in C++, especially if you have created the object in C++, too.
@sierdzio I create the object in qml and pass it to C++. Is it realy save? No memoryleak or problems with Threads?
Check with valgrind to be sure, but I think it is OK (use deleteLater() or destroy() method: link).