PyQT - event is blocked, when combobox is clicked

  • When i click the Arrow of the Combobox and the menue is shown, events are blocked. Any way of not blocking? I've created a minimal example, which demonstrates the problem. when you click the arrow and press for example some Keys on your keyboard, those are not propagated.

    import sys
    from PyQt4 import QtGui, QtCore

    class Example(QtGui.QMainWindow):
    	def __init__(self):
    		super(Example, self).__init__()
    	def initUI(self):      
    		#Help Menue =  QtGui.QComboBox(self)"help")"testA")"testB")"testC")
    		self.setGeometry(300, 300, 290, 150)
    		self.setWindowTitle('Event sender')
    	def eventFilter(self, source, event):
    		print event
    def main():
    	app = QtGui.QApplication(sys.argv)
    	ex = Example()
    if __name__ == '__main__':

  • Lifetime Qt Champion


    You are missing a return False in your filterEvent function see the C++ documentation for more details


Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.