<?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[QWidget with parent fully transparent]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I'm trying to change a qwidget opacity, when it has a parent. As I found out the setWindowOpacity is working only for a window without parent. I tried to reimplement paintEvent for the widget. But in this case I changed only widget's opacity(made its background a bit transparant), not its elements. The question is: what I need to reimplement in case I want to change widget's opacity with its elements?</p>
<p dir="auto">Thank you for your answers beforehand.</p>
]]></description><link>https://forum.qt.io/topic/10855/qwidget-with-parent-fully-transparent</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 12:26:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/10855.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Oct 2011 21:33:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QWidget with parent fully transparent on Wed, 02 Nov 2011 12:42:57 GMT]]></title><description><![CDATA[<p dir="auto">I didn't try QML/Qt Quick still. Currently was another goal - study basics of this FrameWork and trying to do something cool and nice with that. Without basics the jump to QML would have been a very stupid step.</p>
]]></description><link>https://forum.qt.io/post/115361</link><guid isPermaLink="true">https://forum.qt.io/post/115361</guid><dc:creator><![CDATA[dmitrij]]></dc:creator><pubDate>Wed, 02 Nov 2011 12:42:57 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Wed, 02 Nov 2011 10:05:40 GMT]]></title><description><![CDATA[<p dir="auto">The new thing they introduced is called QML/Qt Quick. That UI framework is much more suited to doing graphics effects like this. Making these fluent, animated bling UI's using QWidgets just doesn't work out nicely, even if there are tricks you can use to do some of these.</p>
]]></description><link>https://forum.qt.io/post/115348</link><guid isPermaLink="true">https://forum.qt.io/post/115348</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Wed, 02 Nov 2011 10:05:40 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Wed, 02 Nov 2011 09:17:16 GMT]]></title><description><![CDATA[<p dir="auto">[quote]<br />
But from this wiki page:<br />
<a href="http://developer.qt.nokia.com/wiki/Qt_Modules_Maturity_Level" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/wiki/Qt_Modules_Maturity_Level</a></p>
<p dir="auto">We can see taht:<br />
@<br />
Graphics Effects<br />
State: Deprecated<br />
Reasoning: flawed design, we don’t recommend taking maintainership of this code.<br />
@[/quote]</p>
<p dir="auto">Thank you for answer.<br />
I guess they suppose to introduce something new in nearest future. I'm not sure=) But it seems so.</p>
]]></description><link>https://forum.qt.io/post/115338</link><guid isPermaLink="true">https://forum.qt.io/post/115338</guid><dc:creator><![CDATA[dmitrij]]></dc:creator><pubDate>Wed, 02 Nov 2011 09:17:16 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Wed, 02 Nov 2011 04:43:40 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="dmitrij" date="1319837582"]Hello!</p>
<p dir="auto">The question is: what I need to reimplement in case I want to change widget's opacity with its elements?<br />
[/quote]</p>
<p dir="auto">@<br />
void QWidget::setGraphicsEffect ( QGraphicsEffect * effect )<br />
@<br />
And<br />
@<br />
QGraphicsOpacityEffect<br />
@<br />
can be used to achive this.</p>
<p dir="auto">But from this wiki page:<br />
<a href="http://developer.qt.nokia.com/wiki/Qt_Modules_Maturity_Level" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/wiki/Qt_Modules_Maturity_Level</a></p>
<p dir="auto">We can see taht:<br />
@<br />
Graphics Effects<br />
State: Deprecated<br />
Reasoning: flawed design, we don’t recommend taking maintainership of this code.<br />
@</p>
]]></description><link>https://forum.qt.io/post/115300</link><guid isPermaLink="true">https://forum.qt.io/post/115300</guid><dc:creator><![CDATA[dbzhang800]]></dc:creator><pubDate>Wed, 02 Nov 2011 04:43:40 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Tue, 01 Nov 2011 20:31:14 GMT]]></title><description><![CDATA[<p dir="auto">I forgot about those flags at all. Thank you!</p>
]]></description><link>https://forum.qt.io/post/115283</link><guid isPermaLink="true">https://forum.qt.io/post/115283</guid><dc:creator><![CDATA[dmitrij]]></dc:creator><pubDate>Tue, 01 Nov 2011 20:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Tue, 01 Nov 2011 09:04:53 GMT]]></title><description><![CDATA[<p dir="auto">you can either use Qt::Tool or Qt::SubWindow flags.</p>
]]></description><link>https://forum.qt.io/post/115208</link><guid isPermaLink="true">https://forum.qt.io/post/115208</guid><dc:creator><![CDATA[mohsen]]></dc:creator><pubDate>Tue, 01 Nov 2011 09:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Tue, 01 Nov 2011 07:04:11 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your answer.</p>
<p dir="auto">Good question about the reason. I'm starting thinking, I don't need it anymore actually, if of course with a modal flag the window icon will not appear in a task bar. At this moment I know only way to hide icon from task bar: parent adding.</p>
]]></description><link>https://forum.qt.io/post/115187</link><guid isPermaLink="true">https://forum.qt.io/post/115187</guid><dc:creator><![CDATA[dmitrij]]></dc:creator><pubDate>Tue, 01 Nov 2011 07:04:11 GMT</pubDate></item><item><title><![CDATA[Reply to QWidget with parent fully transparent on Mon, 31 Oct 2011 19:11:48 GMT]]></title><description><![CDATA[<p dir="auto">when a widget has parent then it has no background except when it opened window like. other states you may use a label as your background and objects opacity can be changed via style or opacity property.<br />
but if it<code>s window like,what</code>s the reason to give it a parent? you can already show a widget with modal flag or if you need to have access to parent window just keep the parent widget on another pointer.</p>
]]></description><link>https://forum.qt.io/post/115154</link><guid isPermaLink="true">https://forum.qt.io/post/115154</guid><dc:creator><![CDATA[mohsen]]></dc:creator><pubDate>Mon, 31 Oct 2011 19:11:48 GMT</pubDate></item></channel></rss>