<?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[How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime]]></title><description><![CDATA[<p dir="auto">Hi ~~~ I Have a problem .... i want to pass How to pass <strong>QRadioButton(Widget) value</strong> to another <strong>QRadioButton(MainWindow)</strong><br />
for <strong>license Agreement</strong> of my software ... so an widget show up  after clicking Qradiobutton .. and then choosing to accept the rules .. and this value of acceptence .. (<strong>bool</strong>) came back to Mainwindow as the user accepted the rules!!!<br />
i tried connect ... but it didn't work it says no slot even if there's a slot (<strong>a public one</strong>)<br />
<strong>can you help guys &lt;3?</strong></p>
]]></description><link>https://forum.qt.io/topic/127295/how-to-pass-qradiobutton-widget-value-to-another-qradiobutton-mainwindow-realtime</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 18:52:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/127295.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jun 2021 07:49:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime on Fri, 04 Jun 2021 08:37:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> said in <a href="/post/663415">How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/proton-phoenix">@<bdi>Proton-Phoenix</bdi></a> You should pass this information to the slot registeracc::recipe() instead of tightly coupling your classes.</p>
</blockquote>
<p dir="auto"><strong>ok Thank you bro &lt;3</strong><br />
really Thank you bro i will try that</p>
<p dir="auto">problem fixed by jsulm</p>
]]></description><link>https://forum.qt.io/post/663417</link><guid isPermaLink="true">https://forum.qt.io/post/663417</guid><dc:creator><![CDATA[Proton Phoenix]]></dc:creator><pubDate>Fri, 04 Jun 2021 08:37:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime on Fri, 04 Jun 2021 08:32:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/proton-phoenix">@<bdi>Proton-Phoenix</bdi></a> You should pass this information to the slot registeracc::recipe() instead of tightly coupling your classes.</p>
]]></description><link>https://forum.qt.io/post/663415</link><guid isPermaLink="true">https://forum.qt.io/post/663415</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 04 Jun 2021 08:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime on Fri, 04 Jun 2021 08:22:06 GMT]]></title><description><![CDATA[<p dir="auto">Thank you bro now QObject connect signal and slots very good but the value didn't pass to the other window!</p>
<pre><code>void registeracc::recipe(){
    licenceagrement * lic = new licenceagrement;
if(lic-&gt;on_licenceag_clicked()=="true"){
    qDebug()&lt;&lt;lic-&gt;on_licenceag_clicked();
    ui-&gt;radioButton-&gt;setChecked(true);
}else{
    ui-&gt;radioButton-&gt;setChecked(false);
    qDebug()&lt;&lt;lic-&gt;on_licenceag_clicked();
}
}
</code></pre>
<p dir="auto">qDebug()&lt;&lt;lic-&gt;on_licenceag_clicked(); //  = ""<br />
<strong>i want it to get the QString value ... true or false!</strong><br />
is there any problem here!</p>
]]></description><link>https://forum.qt.io/post/663413</link><guid isPermaLink="true">https://forum.qt.io/post/663413</guid><dc:creator><![CDATA[Proton Phoenix]]></dc:creator><pubDate>Fri, 04 Jun 2021 08:22:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime on Fri, 04 Jun 2021 08:14:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/proton-phoenix">@<bdi>Proton-Phoenix</bdi></a> said in <a href="/post/663411">How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime</a>:</p>
<blockquote>
<p dir="auto">QObject::connect(ui-&gt;licenceag,SIGNAL(clicked()),regis,SLOT(regis-&gt;recipe()));</p>
</blockquote>
<p dir="auto">This is invalid connect call. Should be:</p>
<pre><code>QObject::connect(ui-&gt;licenceag,SIGNAL(clicked()),regis,SLOT(recipe()));
</code></pre>
]]></description><link>https://forum.qt.io/post/663412</link><guid isPermaLink="true">https://forum.qt.io/post/663412</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 04 Jun 2021 08:14:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime on Fri, 04 Jun 2021 08:24:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi bro i still just a <em><strong>beginner</strong></em></p>
<p dir="auto">this is the second QRadiobutton ...</p>
<pre><code>QString licenceagrement::on_licenceag_clicked()
{
   
    if(ui-&gt;licenceag-&gt;isChecked()){
      ui-&gt;statuslineedit-&gt;setText("true");
    }else{
        ui-&gt;statuslineedit-&gt;setText("false");
    }
 ch = ui-&gt;statuslineedit-&gt;text();
    ch=photon;
    registeracc *regis=new registeracc();
   QObject::connect(ui-&gt;licenceag,SIGNAL(clicked()),regis,SLOT(regis-&gt;recipe()));
    return photon;
}
</code></pre>
<p dir="auto"><strong>photon and ch are public QString variables</strong><br />
<strong>and this is the first QRadioButton</strong><br />
void registeracc::on_radioButton_clicked()</p>
<pre><code>{
    licenceagrement * lic = new licenceagrement;
    lic-&gt;show();

}
</code></pre>
<p dir="auto"><strong>and this is the globalsltop</strong></p>
<pre><code>void registeracc::recipe(){
    licenceagrement * lic = new licenceagrement;
if(lic-&gt;on_licenceag_clicked()=="true"){
    ui-&gt;radioButton-&gt;setChecked(true);
}else{
    ui-&gt;radioButton-&gt;setChecked(false); 
}
}


</code></pre>
<p dir="auto">**i knew the code is not completed yet ... i have changed the code so many times .. i tried to pass QString values instead of boolean</p>
<p dir="auto">The error message :<br />
QObject::connect: No such slot registeracc::regis-&gt;recipe() in ..\1stapptestdata\licenceagrement.cpp:36<br />
QObject::connect:  (sender name:   'licenceag')<br />
QObject::connect:  (receiver name: 'registeracc')**</p>
]]></description><link>https://forum.qt.io/post/663411</link><guid isPermaLink="true">https://forum.qt.io/post/663411</guid><dc:creator><![CDATA[Proton Phoenix]]></dc:creator><pubDate>Fri, 04 Jun 2021 08:24:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime on Fri, 04 Jun 2021 07:53:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/proton-phoenix">@<bdi>Proton-Phoenix</bdi></a> said in <a href="/post/663409">How to pass QRadioButton(Widget) value to another QRadioButton(MainWindow) realtime</a>:</p>
<blockquote>
<p dir="auto">i tried connect ... but it didn't work it says no slot even if there's a slot (a public one)</p>
</blockquote>
<p dir="auto">Please post the code and exact error message</p>
]]></description><link>https://forum.qt.io/post/663410</link><guid isPermaLink="true">https://forum.qt.io/post/663410</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 04 Jun 2021 07:53:40 GMT</pubDate></item></channel></rss>