<?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[Windows DLL and QT Question]]></title><description><![CDATA[<p dir="auto">Hallo,</p>
<p dir="auto">when the Programm starts all DLLs will be loaded. they are in the same directory as the executable.</p>
<p dir="auto">Now my question is:<br />
If I make a plugin system and the plugins are in subfolder plugins will they be able to access qt classes? Or do they need to have own copy of the dll in their folder?</p>
<p dir="auto">MyApp folder</p>
<ul>
<li>Plugins\
<ul>
<li>Plugin1.dll</li>
<li>Plugin2.dll</li>
</ul>
</li>
<li>myApp.exe</li>
<li>all qt.dlls</li>
</ul>
]]></description><link>https://forum.qt.io/topic/118243/windows-dll-and-qt-question</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 10:29:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/118243.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Aug 2020 15:22:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows DLL and QT Question on Thu, 20 Aug 2020 18:25:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/613408">Windows DLL and QT Question</a>:</p>
<blockquote>
<p dir="auto">Hi,</p>
<p dir="auto">Are you using Qt's plugin system ?</p>
</blockquote>
<p dir="auto">Not at the moment.</p>
<p dir="auto">long time ago I wrote a Template called library_ptr which is practically a smart pointer for DLL and Interface. if you have 2 Classes in a dll it can load the second class as child_ptr which only destroys the class at the end and not the dll handle.</p>
<p dir="auto">If I call SetDllDirectoryW inside the Executable will it also apply for DLLs?</p>
]]></description><link>https://forum.qt.io/post/613430</link><guid isPermaLink="true">https://forum.qt.io/post/613430</guid><dc:creator><![CDATA[QtCoder87]]></dc:creator><pubDate>Thu, 20 Aug 2020 18:25:10 GMT</pubDate></item><item><title><![CDATA[Reply to Windows DLL and QT Question on Thu, 20 Aug 2020 17:06:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Are you using Qt's plugin system ?</p>
]]></description><link>https://forum.qt.io/post/613408</link><guid isPermaLink="true">https://forum.qt.io/post/613408</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 20 Aug 2020 17:06:37 GMT</pubDate></item><item><title><![CDATA[Reply to Windows DLL and QT Question on Thu, 20 Aug 2020 17:01:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">The plugins dynamic (shared) libraries should be added to your project and should be available in the application directory, otherwise it cannot find it to use. For example (<a href="http://MyProject.pro" target="_blank" rel="noopener noreferrer nofollow ugc">MyProject.pro</a>):</p>
<p dir="auto"><code>LIBS += -L"your plugins path" -lpluginlibname</code></p>
<p dir="auto">Happy coding!</p>
]]></description><link>https://forum.qt.io/post/613407</link><guid isPermaLink="true">https://forum.qt.io/post/613407</guid><dc:creator><![CDATA[Cobra91151]]></dc:creator><pubDate>Thu, 20 Aug 2020 17:01:54 GMT</pubDate></item></channel></rss>