[SOLVED] Selecting a Tab in Code
-
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.
-
Try changing current tab using setCurrentIndex(int) function.
-
You can use "tab index":http://doc.qt.nokia.com/4.7/qtabwidget.html#currentIndex-prop to do that. Just call @setCurrentIndex(neededIndex);@