[PyQt] Using a protected slot (columnResized)

Noam Raphael noamraph at gmail.com
Wed Dec 26 16:54:25 GMT 2007


2007/12/26, Andreas Pakulat <apaku at gmx.de>:
> Sure there is: Listen for the sectionResized signal of the header view.
>
Thanks! However, it still doesn't work, for some reason. I added this
to my code:

def columnResized(*args):
    print 'columnResized%s' % repr(args)
QtCore.QObject.connect(tableView.horizontalHeader(),
QtCore.SIGNAL("sectionResized(int,int,int)"), columnResized)

The function is never called. Did I do something wrong?


More information about the PyQt mailing list