<?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[Transulcent widget ignore click]]></title><description><![CDATA[<p dir="auto">Hi, using QT 4.8 I have 2 windows (2 different QT applications). They are overlapped and the application on top is a QWidget with the attribute <a class="plugin-mentions-user plugin-mentions-a" href="/user/qt">@<bdi>Qt</bdi></a>::WA_TranslucentBackground @<br />
I want to make the background of this widget   (NOT the children like QPushButtons) transparent to click because I need to interact with the other window which is behind this.</p>
<p dir="auto">Any suggestion?</p>
<p dir="auto">Thanks guys ;)</p>
]]></description><link>https://forum.qt.io/topic/42373/transulcent-widget-ignore-click</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 13:49:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42373.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Jun 2014 07:43:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Transulcent widget ignore click on Wed, 11 Jun 2014 07:43:12 GMT]]></title><description><![CDATA[<p dir="auto">I think  following properties should be set for making a widget transparent:</p>
<p dir="auto">setWindowFlags (Qt::FramelessWindowHint);<br />
this-&gt;setAttribute(Qt::WA_TranslucentBackground, true);</p>
<p dir="auto">and one more thing:</p>
<ul>
<li>It works on windows platform. I m not sure about other platform that it will work or not.</li>
</ul>
]]></description><link>https://forum.qt.io/post/231583</link><guid isPermaLink="true">https://forum.qt.io/post/231583</guid><dc:creator><![CDATA[ankursaxena]]></dc:creator><pubDate>Wed, 11 Jun 2014 07:43:12 GMT</pubDate></item><item><title><![CDATA[Reply to Transulcent widget ignore click on Wed, 11 Jun 2014 07:30:23 GMT]]></title><description><![CDATA[<p dir="auto">I solved the problem splitting my main widget in several widgets.. in this way I don't need the widget to be transparent in the middle.<br />
Anyway if I try the following in the widget's constructor:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/this">@<bdi>this-</bdi></a>&gt;setStyleSheet("QWidget{background:rgba(0,0,0,0);}");@</p>
<p dir="auto">I only obtain a full black widget and not a transparent widget</p>
]]></description><link>https://forum.qt.io/post/231580</link><guid isPermaLink="true">https://forum.qt.io/post/231580</guid><dc:creator><![CDATA[rfringuello89]]></dc:creator><pubDate>Wed, 11 Jun 2014 07:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to Transulcent widget ignore click on Tue, 10 Jun 2014 11:40:44 GMT]]></title><description><![CDATA[<p dir="auto">set widget background color using rgba code (255,255,255,0);<br />
where a should be 0 if u want that there should be clicked behind the widget.</p>
<p dir="auto">otherwise a put 1 to 10 any value.<br />
a represents here opacity</p>
]]></description><link>https://forum.qt.io/post/231493</link><guid isPermaLink="true">https://forum.qt.io/post/231493</guid><dc:creator><![CDATA[ankursaxena]]></dc:creator><pubDate>Tue, 10 Jun 2014 11:40:44 GMT</pubDate></item></channel></rss>