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

Paulino

Message: 3
Date: Wed, 07 Feb 2007 01:33:55 +0000
From: Paulino <[EMAIL PROTECTED]>
Subject: [PyKDE] QTableWidget cellClicked(int, int) SIGNAL not working
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
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")



_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to