<?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[Enlazar dos ventanas]]></title><description><![CDATA[<p dir="auto">Good afternoon, how can I link several QDialog windows if I only have one QMainWindow, but I have already connected both qdialogs to the main one, so now I only need to run the QMainWindow (main cpp) without having to show it until I require it. Thank you.</p>
]]></description><link>https://forum.qt.io/topic/114538/enlazar-dos-ventanas</link><generator>RSS for Node</generator><lastBuildDate>Sat, 03 Oct 2026 10:30:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114538.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 May 2020 03:27:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Enlazar dos ventanas on Fri, 08 May 2020 04:53:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/edward_szs">@<bdi>Edward_SZS</bdi></a> Please consider to use <a href="https://forum.qt.io/category/31/spanish">https://forum.qt.io/category/31/spanish</a> if you want to ask in Spanish, this is English forum. I don't speak Spanish, so I can't help.</p>
]]></description><link>https://forum.qt.io/post/593456</link><guid isPermaLink="true">https://forum.qt.io/post/593456</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 08 May 2020 04:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to Enlazar dos ventanas on Fri, 08 May 2020 01:14:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/edward_szs">@<bdi>Edward_SZS</bdi></a> Hola / Hello..</p>
<p dir="auto">Spanish:<br />
Debes conectar el botón con una función miembro en el constructor:</p>
<p dir="auto">English:<br />
You need to connect the current button with a member function of your current window, do it inside constructor:</p>
<pre><code>#include "mi_otra_ventana.h"

mi_ventana::mi_ventana(){
     connect(ui-&gt;myButton, SIGNAL(clicked()), this, SLOT(onClick_myButton()));
}

//source, declaración función miembro
void mi_ventana::onClick_myButton(){
     mi_otra_ventana w(this);
     int t = w.exec();

      if (t == QDialog::Accepted){
           //aquí va código en caso de que la ventana siguiente
           //se haya cerrado al hacer clic en Aceptar (si lo tiene)
       
            //here goes code in case you clicked accept

      }

}

</code></pre>
<pre><code>//header
private slots:
     void onClick_myButton();
</code></pre>
]]></description><link>https://forum.qt.io/post/593444</link><guid isPermaLink="true">https://forum.qt.io/post/593444</guid><dc:creator><![CDATA[U7Development]]></dc:creator><pubDate>Fri, 08 May 2020 01:14:25 GMT</pubDate></item><item><title><![CDATA[Reply to Enlazar dos ventanas on Thu, 07 May 2020 15:55:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> Mi pregunta va en referencia a como hago para conectar dos ventanas que no son las principales, a su vez cree una principal para ejecutar la funciones de connect, pero  quiero que  en el main.cpp solo ejecute el qt application mas no lo muestre. Gracias.</p>
]]></description><link>https://forum.qt.io/post/593313</link><guid isPermaLink="true">https://forum.qt.io/post/593313</guid><dc:creator><![CDATA[Edward_SZS]]></dc:creator><pubDate>Thu, 07 May 2020 15:55:09 GMT</pubDate></item><item><title><![CDATA[Reply to Enlazar dos ventanas on Thu, 07 May 2020 15:10:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> me refiero a como puedo pasar con un button box de una ventana (qdialog a otra qdialog). Gracias.</p>
]]></description><link>https://forum.qt.io/post/593302</link><guid isPermaLink="true">https://forum.qt.io/post/593302</guid><dc:creator><![CDATA[Edward_SZS]]></dc:creator><pubDate>Thu, 07 May 2020 15:10:10 GMT</pubDate></item><item><title><![CDATA[Reply to Enlazar dos ventanas on Thu, 07 May 2020 07:23:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/edward_szs">@<bdi>Edward_SZS</bdi></a> Sorry, I don't understand your description at all!<br />
"how can I link several QDialog windows" - what does "link" mean here?<br />
Can you please refrase your question and explain more clearly what you want to do?</p>
<p dir="auto">Also, please keep the caption of your thread in English.</p>
]]></description><link>https://forum.qt.io/post/593180</link><guid isPermaLink="true">https://forum.qt.io/post/593180</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 07 May 2020 07:23:10 GMT</pubDate></item></channel></rss>