[PyKDE] QTableWidget cellClicked(int, int) SIGNAL not working

Paulino paulino1 at sapo.pt
Wed Feb 7 01:33:55 GMT 2007


I can't get the QTableWidget Signall "cellClicked()" neither 
"currentCellChanged()" working.

this is the connection not working
QObject.connect( self.tabMaster, SIGNAL("cellClicked(int, int)"), 
self.mostraMovDetalhe )

but this connection works proporly: (signal emited from a QPushButton, 
the same receiver)
QObject.connect( self.pbNovo, SIGNAL("clicked()"), self.mostraMovDetalhe )


Are the signals from this widget disabled ?


here is the definition of th QTableWidget:

        self.tabMaster = QtGui.QTableWidget(self.layoutWidget)
        sizePolicy = 
QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(7))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        
sizePolicy.setHeightForWidth(self.tabMaster.sizePolicy().hasHeightForWidth())
        self.tabMaster.setSizePolicy(sizePolicy)
        self.tabMaster.setMinimumSize(QtCore.QSize(240,192))
        self.tabMaster.setMaximumSize(QtCore.QSize(179,400))
        
self.tabMaster.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        
self.tabMaster.setEditTriggers(QtGui.QAbstractItemView.AllEditTriggers)
        self.tabMaster.setAlternatingRowColors(True)
        
self.tabMaster.setSelectionMode(QtGui.QAbstractItemView.ContiguousSelection)
        
self.tabMaster.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.tabMaster.setShowGrid(False)
        self.tabMaster.setObjectName("tabMaster")
       




More information about the PyQt mailing list