<?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[Window opacity]]></title><description><![CDATA[<p dir="auto">Hi<br />
I want to set the window opacity of some widgets so I started with<br />
@<br />
ui.buttonLabel_4-&gt;setWindowOpacity(0.0);<br />
@<br />
which had no effect</p>
<p dir="auto">then I tried<br />
@<br />
QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this); // make sure to create using new, since effect has to be alive as long as the target widget is using it.<br />
opacityEffect-&gt;setOpacity(0.0); // initially widget should be visible<br />
ui.buttonLabel_4-&gt;setGraphicsEffect(opacityEffect);<br />
@<br />
which has the desired effect.</p>
<p dir="auto">My question is why did my first option not work?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/34736/window-opacity</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 15:55:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/34736.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Nov 2013 09:21:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Window opacity on Tue, 26 Nov 2013 09:25:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Since button is not a window. See "windowOpacity":<a href="http://qt-project.org/doc/qt-5.0/qtwidgets/qwidget.html#windowOpacity-prop" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtwidgets/qwidget.html#windowOpacity-prop</a></p>
]]></description><link>https://forum.qt.io/post/205297</link><guid isPermaLink="true">https://forum.qt.io/post/205297</guid><dc:creator><![CDATA[p3c0]]></dc:creator><pubDate>Tue, 26 Nov 2013 09:25:31 GMT</pubDate></item></channel></rss>