Le 11/10/11 10:39, luca72 a écrit :
helo i have this form how i can install the event filter:
Class Form(QWidget, Ui_Form):
    """
    Class documentation goes here.
    """
    def __init__(self, parent = None):
        """
        Constructor
        """
        QWidget.__init__(self, parent)
        self.setupUi(self)

Thanks
MainWindow.eventFilter = self.event_filter

...

def event_filter(self, object, event):
        # example: window is resized
        if event.type() == 14:
            resize()
            return True


In your case, 'MainWindow' seems to be 'parent'

--
Vincent V.V.
Oqapy . Qarte+7 . PaQager
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to