[PyKDE] Problem with QTabWidget and currentChanged signal
Akos Polster
akos at pipacs.com
Sat Jan 20 21:42:42 GMT 2007
Hi Arne,
this is how it works for me:
self.tab = QTabWidget(self)
self.connect(self.tab, SIGNAL("currentChanged(QWidget *)"),
self.onPageChange)
~ Akos.
On Saturday 20 January 2007 9:11 pm, 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>
>
> But at the initialization for each tab I get this error:
> QObject::connect: No such signal QTabWidget::currentChanged()
> QObject::connect: (sender name: 'unnamed')
> QObject::connect: (receiver name: 'unnamed')
>
> And at runtime there is no tab-changing-actions.
> Any idea ?
>
> regards
> Arne
>
> _______________________________________________
> PyKDE mailing list PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
More information about the PyQt
mailing list