<?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[QML and Own C++ Object&#x2F;Plugin]]></title><description><![CDATA[<p dir="auto">Hi;</p>
<p dir="auto">I wrote my own plugin and object.  Problem is, C++ object's parent always null...  Why ?</p>
<p dir="auto">In QML :<br />
...<br />
ChRSM<br />
{<br />
id		: chRSM<br />
}<br />
...</p>
<p dir="auto">In C++ :<br />
CChRSM::CChRSM(QObject*	ChParent /<em>= NULL</em>/)<br />
: QObject(<br />
ChParent)<br />
....</p>
<p dir="auto">Thanks...</p>
]]></description><link>https://forum.qt.io/topic/86049/qml-and-own-c-object-plugin</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 22:31:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/86049.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Dec 2017 21:04:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML and Own C++ Object&#x2F;Plugin on Sun, 17 Dec 2017 21:42:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
Like here i guess<br />
<a href="http://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html</a></p>
<p dir="auto">Maybe parent is set after CChRSM is constructed.</p>
<p dir="auto">What is the problem with parent being NULL ?</p>
]]></description><link>https://forum.qt.io/post/432187</link><guid isPermaLink="true">https://forum.qt.io/post/432187</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 17 Dec 2017 21:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to QML and Own C++ Object&#x2F;Plugin on Sun, 17 Dec 2017 21:20:22 GMT]]></title><description><![CDATA[<p dir="auto">exactly, problem is as you define.  I  am beginner for QML.  I just define the object as follows;</p>
<p dir="auto">ApplicationWindow<br />
{<br />
id		: window<br />
width	: 360<br />
height	: 520<br />
visible	: true<br />
title	: "Quasar"</p>
<pre><code>header: ToolBar
{
	id					: chObject
	Material.foreground	: "white"

	RowLayout
	{
		spacing			: 20
		anchors.fill	: parent

		ChRSM
		{
			id		: chRSM
		}
</code></pre>
<p dir="auto">.<br />
...<br />
....</p>
]]></description><link>https://forum.qt.io/post/432186</link><guid isPermaLink="true">https://forum.qt.io/post/432186</guid><dc:creator><![CDATA[VeNToR]]></dc:creator><pubDate>Sun, 17 Dec 2017 21:20:22 GMT</pubDate></item><item><title><![CDATA[Reply to QML and Own C++ Object&#x2F;Plugin on Sun, 17 Dec 2017 21:11:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
You mean you made a custom QML component in c++ and when used<br />
in QML, the c++ object created by the engine is<br />
not being given a parent in constructor?</p>
<p dir="auto">But what is the parent in QML you show ?</p>
]]></description><link>https://forum.qt.io/post/432185</link><guid isPermaLink="true">https://forum.qt.io/post/432185</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 17 Dec 2017 21:11:24 GMT</pubDate></item></channel></rss>