<?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[QClipboard: setting only owner, not data]]></title><description><![CDATA[<p dir="auto">We are planning to port a GTK+ application to Qt.<br />
In GTK+ you can set the clipboard with a "owner": the system clipboard will never be loaded with real data, only with MIME type(s). When later the data will be really needed, for example when the user pastes it inside another application, a callback/signal to your application is called, and your application will build and provide the data.<br />
All is accomplished with the function <a href="https://developer.gnome.org/gtk3/stable/gtk3-Clipboards.html#gtk-clipboard-set-with-owner" target="_blank" rel="noopener noreferrer nofollow ugc">gtk_clipboard_set_with_owner()</a>. This should be the equivalent of X11 function XSetSelectionOwner(). Under windows you can use <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setclipboarddata" target="_blank" rel="noopener noreferrer nofollow ugc">SetClipboardData()</a> with a NULL handle, and your window will receive WM_RENDERFORMAT/WM_RENDERALLFORMATS message later to provide the data.</p>
<p dir="auto">Is there a similar pattern/usage for Qt?</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/topic/105892/qclipboard-setting-only-owner-not-data</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 11:12:48 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/105892.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Aug 2019 18:44:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QClipboard: setting only owner, not data on Tue, 04 Feb 2020 22:32:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> thanks! We will have a look.</p>
]]></description><link>https://forum.qt.io/post/575894</link><guid isPermaLink="true">https://forum.qt.io/post/575894</guid><dc:creator><![CDATA[antenore]]></dc:creator><pubDate>Tue, 04 Feb 2020 22:32:28 GMT</pubDate></item><item><title><![CDATA[Reply to QClipboard: setting only owner, not data on Tue, 04 Feb 2020 20:42:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antenore">@<bdi>antenore</bdi></a> said in <a href="/post/575880">QClipboard: setting only owner, not data</a>:</p>
<blockquote>
<p dir="auto">Do you know if there're any plans to implement this part?</p>
</blockquote>
<p dir="auto">Take a look at the <a href="https://bugreports.qt.io/secure/Dashboard.jspa" target="_blank" rel="noopener noreferrer nofollow ugc">bugtracker</a> but I don't think so.</p>
<blockquote>
<p dir="auto">If not why?</p>
</blockquote>
<p dir="auto">Because nobody requested it for now and nobody provided a patch for it.</p>
]]></description><link>https://forum.qt.io/post/575884</link><guid isPermaLink="true">https://forum.qt.io/post/575884</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 04 Feb 2020 20:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to QClipboard: setting only owner, not data on Tue, 04 Feb 2020 20:10:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> and? That's all? Do you know if there're any plans to implement this part? If not why? Your answer sound too conclusive to me. :-/<br />
If this is not the right channel, where we can discuss this thread more in depth?<br />
Thanks for your answers.</p>
]]></description><link>https://forum.qt.io/post/575880</link><guid isPermaLink="true">https://forum.qt.io/post/575880</guid><dc:creator><![CDATA[antenore]]></dc:creator><pubDate>Tue, 04 Feb 2020 20:10:52 GMT</pubDate></item><item><title><![CDATA[Reply to QClipboard: setting only owner, not data on Tue, 13 Aug 2019 20:18:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi welcome to devnet,</p>
<p dir="auto">Based on the <a href="https://doc.qt.io/qt-5/qclipboard.html" target="_blank" rel="noopener noreferrer nofollow ugc">QClipboard documentation</a>, it seems that you don't have the same options as in GTK+.</p>
]]></description><link>https://forum.qt.io/post/546049</link><guid isPermaLink="true">https://forum.qt.io/post/546049</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 13 Aug 2019 20:18:19 GMT</pubDate></item></channel></rss>