<?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[Event loop in DLL steal events]]></title><description><![CDATA[<p dir="auto">Good day. I implement some OpenGL plugin for 3rd party software using proxy dll. So there is 2 functions:</p>
<p dir="auto">Init() called only once and init OpenGL and QApplication if it not peresent<br />
@<br />
...<br />
isInQtApp = ( qApp != nullptr ); // global bool<br />
if ( !isInQtApp ){<br />
int argc = 0;<br />
new QApplication( argc, 0 );<br />
qApp-&gt;processEvents();<br />
}</p>
<p dir="auto">// OpenGL init<br />
...<br />
@</p>
<p dir="auto">and apply() function called on every buffers swapping (on each frame rendered)<br />
@<br />
if ( !isInQtApp ){<br />
qApp-&gt;sendPostedEvents();<br />
}</p>
<p dir="auto">// OpenGL rendering<br />
...<br />
@</p>
<p dir="auto">I need QApplication event loop for signal/slots and networking.</p>
<p dir="auto">This implementation works well for Quake 4 for example and some other application, but in FurMark network is not working.</p>
<p dir="auto">I try to add--<br />
@<br />
qApp-&gt;processEvents();<br />
@</p>
<p dir="auto">after<br />
@<br />
qApp-&gt;sendPostedEvents();<br />
@</p>
<p dir="auto">and it get OK for FurMark, but steal any events from other applications, I cant move camera by mouse or move by keyboard. What I am doing wrong?</p>
<p dir="auto">I am using Qt 4.8.4</p>
]]></description><link>https://forum.qt.io/topic/37731/event-loop-in-dll-steal-events</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 19:11:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/37731.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Feb 2014 14:05:06 GMT</pubDate><ttl>60</ttl></channel></rss>