<?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[How to include files from the subproject dll library in a unit testing subproject]]></title><description><![CDATA[<p dir="auto">Hi! I have a project with subprojects. One of the subprojects is a dll library that I'm developing (which means that some of the classes inside the dll library have q_decl_export). I'm trying to connect the classes from the dll subproject to the unit testing subproject. Everything works until I add the q_decl_export directive to the classes in the dll. What should I do? I want to connect the files from the dll subproject to the unit testing project as a dynamic library. In this case, all classes in the dll will need to be added with q_decl_export. However, I do not want all classes to be accessible from the dll.</p>
]]></description><link>https://forum.qt.io/topic/163392/how-to-include-files-from-the-subproject-dll-library-in-a-unit-testing-subproject</link><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 08:11:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163392.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Oct 2025 07:09:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to include files from the subproject dll library in a unit testing subproject on Wed, 01 Oct 2025 11:08:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stanislav228">@<bdi>Stanislav228</bdi></a></p>
<p dir="auto">Hi and welcome to the forum,</p>
<p dir="auto">I don't quite understand your issue. You don't need to add the <code>EXPORT</code> to all functions/classes of your library. You can still hide some classes or functions that you don't want in your target that imports the lib.</p>
<blockquote>
<p dir="auto">Everything works until I add the q_decl_export directive to the classes in the dll. What should I do?</p>
</blockquote>
<p dir="auto">What does not work then?! How do you add the import/export directives to your project? Are you using the "Qt-Global" style?!</p>
]]></description><link>https://forum.qt.io/post/832289</link><guid isPermaLink="true">https://forum.qt.io/post/832289</guid><dc:creator><![CDATA[Pl45m4]]></dc:creator><pubDate>Wed, 01 Oct 2025 11:08:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to include files from the subproject dll library in a unit testing subproject on Wed, 01 Oct 2025 11:08:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">How did you add these macros ?<br />
Did you properly follow the <a href="https://doc.qt.io/qt-6/sharedlibrary.html" target="_blank" rel="noopener noreferrer nofollow ugc">documentation on this subject</a> ?</p>
]]></description><link>https://forum.qt.io/post/832288</link><guid isPermaLink="true">https://forum.qt.io/post/832288</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 01 Oct 2025 11:08:33 GMT</pubDate></item></channel></rss>