[PyQt] problem with QTabBar

Russell Valentine russ at coldstonelabs.org
Tue Oct 14 03:36:17 BST 2008


Min Li wrote:
> Hi, everyone.
> 
> I have some trouble in QTabBar. How can I trigger some event when I change
> the current tab to a new tab?
> 
> Could you please give me some suggestion?
> 
> Thanks
> 
> Lee
> 
> 


someconstructor:
	self.tabBar = QtGui.QTabBar()
	self.connect(self.tabBar, QtCore.SIGNAL("currentChanged(int)"), 
self.switchedTab)



def switchedTab(self):
	print "Some event?"


More information about the PyQt mailing list