<?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[Linking Unity libraries to QT 4.8.4]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">First of all, I begin using QT development tools.<br />
I'm currently working on a QT Project that will be a client for a game i'll develop with Unity 3d. This QT Client will connect to the Unity App thanks to Unity functions. I'm not sure it can be done, it's just a test.<br />
I started importing the two main DLLs "UnityEngine" and "UnityEditor".</p>
<p dir="auto">@<br />
#include &lt;QApplication&gt;<br />
#include &lt;QLibrary&gt;<br />
#include &lt;QtDebug&gt;</p>
<p dir="auto">int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);<br />
QLibrary engine("UnityEngine");<br />
QLibrary editor("UnityEditor");</p>
<p dir="auto">qDebug()&lt;&lt;engine.load();           //true<br />
qDebug()&lt;&lt;editor.load();           //true</p>
<p dir="auto">void *test = engine.resolve("Network::Connect");  // test = 0x00<br />
qDebug()&lt;&lt;test;</p>
<p dir="auto">return app.exec();<br />
}<br />
@</p>
<p dir="auto">The output for the two qDebug is true: my DLLs are correctly loaded.<br />
Then i want to resolve the Connect function from the Network class of UnityEngine.dll but it doesn't work. I got the 0x0 output.</p>
<p dir="auto">So what's wrong with my code? And do i need to get header files of the DLLs to make it work ?</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.qt.io/topic/33295/linking-unity-libraries-to-qt-4-8-4</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 22:45:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/33295.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Oct 2013 16:35:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linking Unity libraries to QT 4.8.4 on Fri, 07 Mar 2014 22:27:34 GMT]]></title><description><![CDATA[<p dir="auto">Were you ever able to get this running?</p>
]]></description><link>https://forum.qt.io/post/201212</link><guid isPermaLink="true">https://forum.qt.io/post/201212</guid><dc:creator><![CDATA[immersive_dev]]></dc:creator><pubDate>Fri, 07 Mar 2014 22:27:34 GMT</pubDate></item></channel></rss>