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

Paulino paulino1 at sapo.pt
Wed Feb 7 12:14:47 GMT 2007


well it works with the cellPressed signal instead of cellClicked...

Paulino
>
> Message: 3
> Date: Wed, 07 Feb 2007 01:33:55 +0000
> From: Paulino <paulino1 at sapo.pt>
> Subject: [PyKDE] QTableWidget cellClicked(int, int) SIGNAL not working
> To: pykde at mats.imk.fraunhofer.de
> Message-ID: <45C92C83.8090209 at sapo.pt>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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