[PyQt] QComboBox and mouseReleaseEvent

Filip Gruszczyński gruszczy at gmail.com
Thu Jul 3 23:43:25 BST 2008


I have created such class:

class QComboBoxExt(QComboBox):

	def mouseReleaseEvent(self, event):
		print "release"
		QComboBox.mouseReleaseEvent(self, event)

However mouseReleaseEvent is never called. I have checked
qcombobox.cpp/h and mousePressEvent is both declared and defined. It's
not virtual though - could this be a reason? On the other
mousePressEvent isn't virtual too and I could easily subclass it.

-- 
Filip Gruszczyński



More information about the PyQt mailing list