<?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[Positioning of QMessageBox::information]]></title><description><![CDATA[<p dir="auto">Using following code:</p>
<pre><code>QString message{ tr("Total stacking time: %1").arg(exposureToString(elapsed.count())) };
QMessageBox::information(this, "DeepSkyStacker", message, QMessageBox::Ok, QMessageBox::Ok);
</code></pre>
<p dir="auto">*this is a QWidget.   Messagebox doesn't appear in front of it though - it opens near to top left of desktop.</p>
<p dir="auto">What am I missing?</p>
]]></description><link>https://forum.qt.io/topic/139284/positioning-of-qmessagebox-information</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 07:19:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139284.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Sep 2022 14:42:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Positioning of QMessageBox::information on Wed, 14 Sep 2022 10:31:15 GMT]]></title><description><![CDATA[<p dir="auto">It's on Win 10 what extra details do you want?  If it helps any here's the code that sets things up once the initial CDialog subclass is opened.</p>
<p dir="auto">"*this" in the question is the stackingDlg object of class type DSS::StackingDlg which is a QWidget sub-class</p>
<pre><code>BOOL CDeepStackerDlg::OnInitDialog()
{
	CDialog::OnInitDialog();
	CRect rect;
	GetWindowRect(&amp;rect);

	widget = new QWinWidget(this);
	QVBoxLayout* verticalLayout { new QVBoxLayout(widget) };
	verticalLayout-&gt;setObjectName("verticalLayout");

	splitter = new QSplitter(Qt::Horizontal, widget);
	splitter-&gt;setObjectName("splitter");

	explorerBar = new ExplorerBar(splitter);
	explorerBar-&gt;setObjectName("explorerBar");
	splitter-&gt;addWidget(explorerBar);

	stackedWidget = new QStackedWidget(splitter);
	stackedWidget-&gt;setObjectName("stackedWidget");
	splitter-&gt;addWidget(stackedWidget);

	stackingDlg = new DSS::StackingDlg(stackedWidget);
	stackingDlg-&gt;setObjectName("stackingDlg");

	stackedWidget-&gt;addWidget(stackingDlg);
	stackedWidget-&gt;setCurrentWidget(stackingDlg);

</code></pre>
<p dir="auto">Thanks, David</p>
]]></description><link>https://forum.qt.io/post/728612</link><guid isPermaLink="true">https://forum.qt.io/post/728612</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Wed, 14 Sep 2022 10:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to Positioning of QMessageBox::information on Tue, 13 Sep 2022 18:54:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What is this ?<br />
Where is it located ?<br />
Which OS ?<br />
If Linux, which desktop environment ?</p>
]]></description><link>https://forum.qt.io/post/728608</link><guid isPermaLink="true">https://forum.qt.io/post/728608</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 13 Sep 2022 18:54:48 GMT</pubDate></item></channel></rss>