<?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[Création de fenêtres avec des widget]]></title><description><![CDATA[<p dir="auto">Bonjour,<br />
Lorsque j'utilise "Window" en paramètre la fenêtre enfant ne s'affiche pas.<br />
Voici le code:</p>
<pre><code>int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
 
    QWidget *Window = new QWidget();
    Window-&gt;setWindowTitle("Fenêtre parent");
     Window-&gt;setGeometry(10,10,600,400);
   Window-&gt;show();


    QWidget *childWindow = new QWidget(Window); 
    childWindow-&gt;setWindowTitle("Fenêtre enfant");
    childWindow-&gt;setGeometry(20,20,300,200);
    childWindow-&gt;show();


    return QCoreApplication::exec();

Merci de votre aide.
</code></pre>
]]></description><link>https://forum.qt.io/topic/165117/création-de-fenêtres-avec-des-widget</link><generator>RSS for Node</generator><lastBuildDate>Sat, 26 Sep 2026 12:11:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165117.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Sep 2026 17:28:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Création de fenêtres avec des widget on Thu, 24 Sep 2026 18:51:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lacombe">@<bdi>lacombe</bdi></a> said in <a href="/post/840255">Création de fenêtres avec des widget</a>:</p>
<blockquote>
<p dir="auto">return QCoreApplication::exec();</p>
</blockquote>
<p dir="auto"><a href="https://doc.qt.io/archives/qt-5.15/qcoreapplication.html" target="_blank" rel="noopener noreferrer nofollow ugc">QCoreApplication Class</a></p>
<blockquote>
<p dir="auto">The QCoreApplication class provides an event loop for Qt applications without UI.</p>
</blockquote>
<p dir="auto">?</p>
<pre><code>QApplication a(argc, argv);
...
return a.exec();
</code></pre>
]]></description><link>https://forum.qt.io/post/840256</link><guid isPermaLink="true">https://forum.qt.io/post/840256</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 24 Sep 2026 18:51:29 GMT</pubDate></item></channel></rss>