<?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[Thread in qtbrowser application]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have a browser application in qt .I need to run a thread in parallel to the browser taking the screenshot of the browser and sent to another pc. I used to capture the frame of webpage  by rendering the mainframe of the webpage to an image. For that i need to give an input to the the thread ie, webview ' s object .How can i give the pass the object to the thread.?</p>
]]></description><link>https://forum.qt.io/topic/36420/thread-in-qtbrowser-application</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 23:51:14 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/36420.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Jan 2014 04:26:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Thread in qtbrowser application on Fri, 10 Jan 2014 08:34:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi, First of all, you can't use GUI elements in a different thread then the main thread. One could consider to 'copy' the webview object, but then again, the copy of a QObject is forbidden because very simple, you can't copy children / parent relations.<br />
What I would try is to generate the QImage like you said and then pass it to the already running thread calling a 'send' slot in that Thread object. The slot should receive a copy of the image so be threadsafe.<br />
If that doesn't work, try to register a new type (Q_REGISTER_METATYPE) of a class (CAN'T BE A QOBJECT DERIVED CLASS as explained before) that holds all needed data to be transferred.</p>
]]></description><link>https://forum.qt.io/post/210138</link><guid isPermaLink="true">https://forum.qt.io/post/210138</guid><dc:creator><![CDATA[Jeroentjehome]]></dc:creator><pubDate>Fri, 10 Jan 2014 08:34:07 GMT</pubDate></item></channel></rss>