<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dynamic create and delete Object]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I want to create, store and delete Qml-Objects (like <a href="http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html</a>).</p>
<p dir="auto">My Question ist:<br />
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)?</p>
]]></description><link>https://forum.qt.io/topic/52465/dynamic-create-and-delete-object</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 02:01:45 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/52465.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Mar 2015 07:44:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamic create and delete Object on Mon, 23 Mar 2015 09:15:11 GMT]]></title><description><![CDATA[<p dir="auto">Check with valgrind to be sure, but I think it is OK (use deleteLater() or destroy() method: <a href="http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html#deleting-objects-dynamically" target="_blank" rel="noopener noreferrer nofollow ugc">link</a>).</p>
]]></description><link>https://forum.qt.io/post/266435</link><guid isPermaLink="true">https://forum.qt.io/post/266435</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 23 Mar 2015 09:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamic create and delete Object on Mon, 23 Mar 2015 08:55:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a> I create the object in qml and pass it to C++. Is it realy save? No memoryleak or problems with Threads?</p>
]]></description><link>https://forum.qt.io/post/266432</link><guid isPermaLink="true">https://forum.qt.io/post/266432</guid><dc:creator><![CDATA[kDohmen]]></dc:creator><pubDate>Mon, 23 Mar 2015 08:55:29 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamic create and delete Object on Mon, 23 Mar 2015 08:49:00 GMT]]></title><description><![CDATA[<p dir="auto">I think you can delete in C++, especially if you have created the object in C++, too.</p>
]]></description><link>https://forum.qt.io/post/266430</link><guid isPermaLink="true">https://forum.qt.io/post/266430</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 23 Mar 2015 08:49:00 GMT</pubDate></item></channel></rss>