Hello everybody!
I found a strange behaviour of QTabWidget depending on the platform. The
type of the argument passed by the signal "currentChanged" should be
integer looking at the doc and it is on linux, but on MacOS, a QWidget
is passed (The current tab widget...). Why?!? Thanks for having a look
at it or sending me the type passed on Windows (I have currently no
windows to test, sorry)!
Aaron
This code demonstrates it:
from PySide.QtGui import *
from PySide.QtCore import *
import sys
def slot(parameter):
print type(parameter)
app = QApplication(sys.argv)
t = QTabWidget()
for i in xrange(1, 4):
t.addTab(QWidget(), 'Tab %d' % i)
t.currentChanged.connect(slot)
t.show()
app.exec_()
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside