<?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[Transparent widgets are not moving with their parent]]></title><description><![CDATA[<p dir="auto">I have created a qt application which brings up a transparent widget.<br />
I have one another already running qt application which brings up a form , this qt application will act as a<br />
parent for my transparent widget.<br />
After changing the parent of my transparent widget, now when I move my parent qt window, my transparent widet(now child of second qt application), is not moving at all with repect to its parent.</p>
<p dir="auto">NOTE :- If I remove transparency code then my child widget follows its parent and move along with it.<br />
Please help me where I am going wrong in the below mention code.</p>
<p dir="auto">@<br />
MainWindow::MainWindow(QWidget *parent) :<br />
QMainWindow(parent),<br />
ui(new Ui::MainWindow)<br />
{</p>
<pre><code> ui-&gt;setupUi(this);

setWindowFlags(Qt::FramelessWindowHint);
setStyleSheet("background:transparent;");
setAttribute(Qt::WA_TranslucentBackground);

this-&gt;setGeometry(200,200,500,500);


WId hMSTSCWindow = NULL;

//hMSTSCWindow = FindWindow(TEXT("TSSHELLWND"), NULL);
hMSTSCWindow = FindWindow(TEXT("QWidget"), TEXT("MainParent"));
if(hMSTSCWindow != NULL)
{
    SetParent(this-&gt;winId(),hMSTSCWindow );

}
</code></pre>
<p dir="auto">@</p>
]]></description><link>https://forum.qt.io/topic/16414/transparent-widgets-are-not-moving-with-their-parent</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 07:26:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16414.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 May 2012 08:54:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Transparent widgets are not moving with their parent on Thu, 11 Feb 2021 14:50:05 GMT]]></title><description><![CDATA[<p dir="auto">can anyone help please ?<br />
i'm having the exact same problem<br />
except that i wanna move the widgets separately</p>
]]></description><link>https://forum.qt.io/post/643945</link><guid isPermaLink="true">https://forum.qt.io/post/643945</guid><dc:creator><![CDATA[tataeress]]></dc:creator><pubDate>Thu, 11 Feb 2021 14:50:05 GMT</pubDate></item></channel></rss>