<?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[QtQuick Plugin with private classes]]></title><description><![CDATA[<p dir="auto">Hi everyone!</p>
<p dir="auto">I have a question about Qt Quick plugin. I have a project with Qt Quick plugin which uses C++ classes also I'm using .qrc file to save a QML component which I must using in QML files. When I'm importing plugin to application I could use C++ classes and QML files from plugin. But I want use only QML files but not C++ classes. The question is: How I could hide C++ classes for application's QML files but use in QML files which exist inside my plugin? Is this possible?</p>
]]></description><link>https://forum.qt.io/topic/60270/qtquick-plugin-with-private-classes</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 05:25:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/60270.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Nov 2015 20:56:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtQuick Plugin with private classes on Tue, 03 Nov 2015 10:36:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thanks for the replay! I'll try this.</p>
]]></description><link>https://forum.qt.io/post/296371</link><guid isPermaLink="true">https://forum.qt.io/post/296371</guid><dc:creator><![CDATA[shav]]></dc:creator><pubDate>Tue, 03 Nov 2015 10:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to QtQuick Plugin with private classes on Tue, 03 Nov 2015 08:54:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shav">@<bdi>shav</bdi></a> If I understood you correctly, you can create a proxy class which will internally call the other C++ classes. Keep the objects to these C++ classes as private in your proxy class. And finally register only the proxy class so as to be used from QML. I have done a similar one <a href="https://github.com/ashish157/QOmdb" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>. The <a href="https://github.com/ashish157/QOmdb/blob/master/QOmdb/plugin/qomdbproxy.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">proxy class</a> internally calls <a href="https://github.com/ashish157/QOmdb/blob/master/QOmdb/omdb/qomdb.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> class and is registered <a href="https://github.com/ashish157/QOmdb/blob/master/QOmdb/plugin/qomdbplugin.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
]]></description><link>https://forum.qt.io/post/296335</link><guid isPermaLink="true">https://forum.qt.io/post/296335</guid><dc:creator><![CDATA[p3c0]]></dc:creator><pubDate>Tue, 03 Nov 2015 08:54:35 GMT</pubDate></item></channel></rss>