<?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[[SOLVED] Create a shared library without resolving functions or a QPluginLoader interface]]></title><description><![CDATA[<p dir="auto">Hello there</p>
<p dir="auto">In the past few days I played with shared and static libraries, QPlugin and QPluginLoader. Now I think it's the time to use these information in a project.</p>
<p dir="auto">The plan: I have an application and a backend (shared library). The shared library contains signal and slots and has  more than 250 methods. At the moment I link it statically - so exporting is not a problem.</p>
<p dir="auto">Now I run into the problem of a shared library:</p>
<ul>
<li>Create a normal shared library and resolve more than 250 methods. Can I use signal and slots or do I have to use the extern C functions (Like the QPlugin example here: "How to create plugins":<a href="http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application</a>?</li>
<li>Write an interface with 250 virtual functions (Overhead) and a class. Use QPluginLoader to load it at runtime</li>
</ul>
<p dir="auto">So as you can see I need the possibility of the QPluginLoader without the interface (Because the plan is to write a shared library and not an abstract plugin interface). My questions:</p>
<ul>
<li>Is it possible to use a shared library without an interface in combination with QPluginLoader. The solution has to work under windows (Unix-only would be very easy)</li>
<li>If not, are there any other solutions ?</li>
</ul>
<p dir="auto">Thank you in advice,<br />
Threadcore</p>
]]></description><link>https://forum.qt.io/topic/31200/solved-create-a-shared-library-without-resolving-functions-or-a-qpluginloader-interface</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 06:37:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31200.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Aug 2013 20:21:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Create a shared library without resolving functions or a QPluginLoader interface on Thu, 29 Aug 2013 08:40:41 GMT]]></title><description><![CDATA[<p dir="auto">Ok, thank you, with the Q_DECL_EXPORT/Q_DECL_IMPORT it works like a charm under windows.</p>
]]></description><link>https://forum.qt.io/post/193123</link><guid isPermaLink="true">https://forum.qt.io/post/193123</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 29 Aug 2013 08:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Create a shared library without resolving functions or a QPluginLoader interface on Tue, 27 Aug 2013 07:32:54 GMT]]></title><description><![CDATA[<p dir="auto">Then you can use the technique described "here":<a href="http://qt-project.org/doc/qt-4.8/sharedlibrary.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/sharedlibrary.html</a></p>
]]></description><link>https://forum.qt.io/post/192719</link><guid isPermaLink="true">https://forum.qt.io/post/192719</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 27 Aug 2013 07:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Create a shared library without resolving functions or a QPluginLoader interface on Mon, 26 Aug 2013 21:10:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi SGaist</p>
<p dir="auto">I have the possibility to link against the (shared) library. I develop both components and deploy both in the same package.</p>
<p dir="auto">I use CMake as a build system and under Unix is is possible to create a shared library with add_library(xyz SHARED ...) and put them in the library directory - very nice. But this does not work for windows - so that's my problem</p>
]]></description><link>https://forum.qt.io/post/192685</link><guid isPermaLink="true">https://forum.qt.io/post/192685</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 26 Aug 2013 21:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Create a shared library without resolving functions or a QPluginLoader interface on Mon, 26 Aug 2013 21:04:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Are you planning to give the means to link to your library along your library ?</p>
]]></description><link>https://forum.qt.io/post/192684</link><guid isPermaLink="true">https://forum.qt.io/post/192684</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 26 Aug 2013 21:04:35 GMT</pubDate></item></channel></rss>