<?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[Qt 6 for Android. Do not show &quot;sharing&quot; menu when copying from memory to clipboard with QClipboard. How?]]></title><description><![CDATA[<p dir="auto">Hello all!</p>
<p dir="auto">Trying to get rid of Android "sharing" menu when copying from memory to clipboard with QClipboard-&gt;setText("SomeText"). When copying text to clipboard Android showing "sharing" menu automatically. Is there any way to prohibit showing "sharing" menu?</p>
]]></description><link>https://forum.qt.io/topic/164977/qt-6-for-android.-do-not-show-sharing-menu-when-copying-from-memory-to-clipboard-with-qclipboard.-how</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 19:29:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164977.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Aug 2026 20:55:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 6 for Android. Do not show &quot;sharing&quot; menu when copying from memory to clipboard with QClipboard. How? on Fri, 07 Aug 2026 14:29:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nils-sjoberg">@<bdi>Nils-Sjoberg</bdi></a> Thx a lot. Will try it today.</p>
]]></description><link>https://forum.qt.io/post/839591</link><guid isPermaLink="true">https://forum.qt.io/post/839591</guid><dc:creator><![CDATA[bogong]]></dc:creator><pubDate>Fri, 07 Aug 2026 14:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6 for Android. Do not show &quot;sharing&quot; menu when copying from memory to clipboard with QClipboard. How? on Fri, 07 Aug 2026 13:04:04 GMT]]></title><description><![CDATA[<p dir="auto">Android allows you to mark ClipData as sensitive (e.g. passwords), then the system does not show previews/suggestions for it<br />
Do this only through native Java/Kotlin code, not through QClipboard<br />
Build the ClipData yourself via JNI and add to it:</p>
<pre><code>PersistableBundle extras = new PersistableBundle();
extras.putBoolean(ClipDescription.EXTRA_IS_SENSITIVE, true);
clipData.getDescription().setExtras(extras);
</code></pre>
<p dir="auto">This is only available starting from API 33.</p>
<ol start="2">
<li>Using QAndroidJniObject / QJniObject</li>
</ol>
]]></description><link>https://forum.qt.io/post/839588</link><guid isPermaLink="true">https://forum.qt.io/post/839588</guid><dc:creator><![CDATA[Nils Sjoberg]]></dc:creator><pubDate>Fri, 07 Aug 2026 13:04:04 GMT</pubDate></item></channel></rss>