<?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[Can&#x27;t move window to center of screen.]]></title><description><![CDATA[<p dir="auto">I've seen a way online to get the coordinates for the center of the screen, and at the end, it calls the move function to move it to the relevant coordinates. My move function does not do anything, and I don't see anyone else online having the same issue.</p>
<p dir="auto">I'm using Qt Creator. Here's the constructor for the first window.</p>
<pre><code>StartScreenWindow::StartScreenWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::StartScreenWindow)
{
    ui-&gt;setupUi(this);
    this-&gt;move(900, 900);
}
</code></pre>
<p dir="auto">The window still stays only at the top left. There are no errors. The only warning I have is "QSocketNotifier: Can only be used with threads started with QThread" which from what I found online is something wrong with a library and not for me to fix, so I don't think it's relevant.</p>
]]></description><link>https://forum.qt.io/topic/147420/can-t-move-window-to-center-of-screen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 01:55:44 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/147420.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Aug 2023 17:43:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can&#x27;t move window to center of screen. on Wed, 02 Aug 2023 18:05:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> Unfortunate. Thank you very much.</p>
]]></description><link>https://forum.qt.io/post/767316</link><guid isPermaLink="true">https://forum.qt.io/post/767316</guid><dc:creator><![CDATA[Vad_i]]></dc:creator><pubDate>Wed, 02 Aug 2023 18:05:12 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t move window to center of screen. on Wed, 02 Aug 2023 17:57:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vad_i">@<bdi>Vad_i</bdi></a><br />
The gist is, Wayland, or at least the default compositor I think, does not allow window positioning.  Period.  You can search posts on this forum which end up to that effect.  If you can test with X11 I imagine you'll find it works.</p>
]]></description><link>https://forum.qt.io/post/767314</link><guid isPermaLink="true">https://forum.qt.io/post/767314</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 02 Aug 2023 17:57:30 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t move window to center of screen. on Wed, 02 Aug 2023 17:54:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> Yes. I'm using Qt Creator on Fedora Linux. Does it not work with Wayland?</p>
]]></description><link>https://forum.qt.io/post/767312</link><guid isPermaLink="true">https://forum.qt.io/post/767312</guid><dc:creator><![CDATA[Vad_i]]></dc:creator><pubDate>Wed, 02 Aug 2023 17:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t move window to center of screen. on Wed, 02 Aug 2023 17:48:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vad_i">@<bdi>Vad_i</bdi></a> What platform are you on?  Are you running under Wayland?</p>
]]></description><link>https://forum.qt.io/post/767311</link><guid isPermaLink="true">https://forum.qt.io/post/767311</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 02 Aug 2023 17:48:04 GMT</pubDate></item></channel></rss>