[PyKDE] Problem with QTabWidget and currentChanged signal

Andreas Pakulat apaku at gmx.de
Sat Jan 20 19:41:15 GMT 2007


On 20.01.07 20:11:10, Arne Stäcker wrote:
> Hi, 
> I'm new to Qt and PyQt and I have a problem with QTabWidget, which I cannot 
> solve by myself.
> I want to use tabs and do some action, when the tab is changed. From the Qt 
> docs I tried with this code:
> 
> <Code snippet>
> ...
> self.tabWidget = QTabWidget(self)
> self.connect(self.tabWidget, SIGNAL("currentChanged()"), self.slotTabChanged)
> ...
> </Code snippet>

You forgot the parameter. currentChanged takes an int as parameter and
connections only work when providing the list of parameters, because
they are string-based on the methods signature.

Andreas

-- 
You will soon forget this.




More information about the PyQt mailing list