<?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[[SOLVED]How to open specific tab on pushbutton clicked in tabwidget?]]></title><description><![CDATA[<p dir="auto">I have a tabwidget . Which has Tab1 and Tab2. each tab has a Tableview.<br />
How to make the tab1 to be opened on the pushbutton clicked ?<br />
Is this the right way?</p>
<pre><code>   ui-&gt;tab1-&gt;setFocus();</code></pre>
]]></description><link>https://forum.qt.io/topic/56408/solved-how-to-open-specific-tab-on-pushbutton-clicked-in-tabwidget</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 22:35:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/56408.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Jul 2015 05:04:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED]How to open specific tab on pushbutton clicked in tabwidget? on Thu, 16 Jul 2015 06:03:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jeroen3">@<bdi>Jeroen3</bdi></a><br />
Thanks for the reply.<br />
I tried using  setCurrentIndex which helped me out .</p>
<pre><code>    ui-&gt;tabWidget-&gt;setCurrentWidget(ui-&gt;tab);</code></pre>
]]></description><link>https://forum.qt.io/post/282542</link><guid isPermaLink="true">https://forum.qt.io/post/282542</guid><dc:creator><![CDATA[Ratzz]]></dc:creator><pubDate>Thu, 16 Jul 2015 06:03:35 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED]How to open specific tab on pushbutton clicked in tabwidget? on Thu, 16 Jul 2015 06:01:46 GMT]]></title><description><![CDATA[<p dir="auto">I think that will put the focus on the tab name.<br />
Try <a href="http://doc.qt.io/qt-5/qtabwidget.html#currentIndex-prop" target="_blank" rel="noopener noreferrer nofollow ugc">setCurrentIndex(int index)</a></p>
]]></description><link>https://forum.qt.io/post/282540</link><guid isPermaLink="true">https://forum.qt.io/post/282540</guid><dc:creator><![CDATA[Jeroen3]]></dc:creator><pubDate>Thu, 16 Jul 2015 06:01:46 GMT</pubDate></item></channel></rss>