mattc
13th May 2009, 11:33
Hello,
I have a set of QTabWidgets and I am trying to force only one "current" tab across the multiple QTabWidgets. In order to do this, I need a way to deselect all the tabs in the "inactive" QTabWidgets. How can I do this?
I tried setCurrentIndex(-1) and setCurrentWidget(0) but got no results. Incidentally, I noticed that removing the current tab from a QTabWidget leaves no current widget (that's good)... but I don't want to remove the current tab. Anything better then adding and removing a fake tab?
I am using Qt 4.5.0 on Vista sp1 + VS 2008 sp1.
Thanks.
I have a set of QTabWidgets and I am trying to force only one "current" tab across the multiple QTabWidgets. In order to do this, I need a way to deselect all the tabs in the "inactive" QTabWidgets. How can I do this?
I tried setCurrentIndex(-1) and setCurrentWidget(0) but got no results. Incidentally, I noticed that removing the current tab from a QTabWidget leaves no current widget (that's good)... but I don't want to remove the current tab. Anything better then adding and removing a fake tab?
I am using Qt 4.5.0 on Vista sp1 + VS 2008 sp1.
Thanks.