On Wed, Mar 18, 2009 at 3:40 PM, Gert-Jan <[email protected]> wrote:
> Class GUI:
>        def __init__(self):
>                tableWidget = QtGui.QTableWidget()
>                # Code to insert 5 columns and make a horizontal header)
>                self.connect(tableWidget.horizontalHeader, 
> QtCore.SIGNAL("clicked()"),
> self.random_function)
>
>        def random_function(self):
>                print 'ok'
>
> However, double-clicking the header does not make the console print 'ok'.

If you double click, the signal should be doubleClicked().

Till

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to