<?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] Selecting a Tab in Code]]></title><description><![CDATA[<p dir="auto">Hi, I have a QTabWidget in which I have two tabs. The first I use for the application's general UI and the other for errors. When an error occurs I would like to active this tab to bring these errors to the user's attention. However I cannot see, nor find, anything that allows me to do this, so I thought I'd ask here. I am using Qt 4.7.2 if that helps.</p>
]]></description><link>https://forum.qt.io/topic/7492/solved-selecting-a-tab-in-code</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 20:13:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/7492.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jul 2011 11:07:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Selecting a Tab in Code on Mon, 11 Jul 2011 11:41:51 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the replies and needless to say it was exactly what I was looking for. Just as well no one can't see how embarrassed I look!</p>
]]></description><link>https://forum.qt.io/post/97324</link><guid isPermaLink="true">https://forum.qt.io/post/97324</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 11 Jul 2011 11:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Selecting a Tab in Code on Mon, 11 Jul 2011 11:22:12 GMT]]></title><description><![CDATA[<p dir="auto">You can use "tab index":<a href="http://doc.qt.nokia.com/4.7/qtabwidget.html#currentIndex-prop" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7/qtabwidget.html#currentIndex-prop</a> to do that. Just call @setCurrentIndex(neededIndex);@</p>
]]></description><link>https://forum.qt.io/post/97316</link><guid isPermaLink="true">https://forum.qt.io/post/97316</guid><dc:creator><![CDATA[maxim.prishchepa]]></dc:creator><pubDate>Mon, 11 Jul 2011 11:22:12 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Selecting a Tab in Code on Mon, 11 Jul 2011 11:19:29 GMT]]></title><description><![CDATA[<p dir="auto">Try changing current tab using setCurrentIndex(int) function.</p>
]]></description><link>https://forum.qt.io/post/97313</link><guid isPermaLink="true">https://forum.qt.io/post/97313</guid><dc:creator><![CDATA[sidewinder]]></dc:creator><pubDate>Mon, 11 Jul 2011 11:19:29 GMT</pubDate></item></channel></rss>