[PyKDE] problem with event filter?

Patrick Stinson patrickkidd.lists at gmail.com
Fri Nov 17 21:11:55 GMT 2006


Does QObject.eventFilter work as it is supposed to? My eventFilter
method never gets called, even after typing in the line edit...

class SpinBox(QSpinBox):
    def __init__(self, parent=None):
        QSpinBox.__init__(self, parent)
        self.installEventFilter(self.lineEdit())

    def eventFilter(self, o, e):
        print o, e
        if o == self.lineEdit():
            print e.isDoubleClick()

-- 
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/




More information about the PyQt mailing list