PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 874 - QApplication.winEventFilter(msg) not implemented but in docs
: QApplication.winEventFilter(msg) not implemented but in docs
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.3
: PC MS Windows XP/Vista/7
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-03 16:25 EEST by Dieter
Modified: 2011-06-22 20:14 EEST (History)
8 users (show)

See Also:


Attachments
uni test (674 bytes, text/x-python)
2011-06-08 22:23 EEST, renato filho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter 2011-06-03 16:25:56 EEST
I am trying to user the QApplication.winEventFilter(msg) to get some windows
events. The docs say this function is there 

http://www.pyside.org/docs/pyside/PySide/QtGui/QApplication.html              
------- search for winEventFilter

However it seems that it is not there. At least my IDE doesn't show it and I
also can not get it to find  any event. 

What I tried is:

class myQApplication(QApplication):
    def __init__( self, argv ):
        QApplication.__init__(self, argv) 

    def winEventFilter(self, msg):  
        print "Windows Event !"    
        return QApplication.winEventFilter(msg)

Tried this with PySide 1.0.3.

I would suggest to remove the functions from the docs until it is implemented.
Comment 1 renato filho 2011-06-08 22:23:04 EEST
Created attachment 335 [details]
uni test

I think I have fixed the problem but unfortunately I'm not able to test this, I
have created this small example, could you help me to complete this test?
Comment 2 renato filho 2011-06-08 22:25:25 EEST
Implementation of this function on pyside commit:

commit ba2510c52a384b1f6b853a176613551f7ae34364
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Jun 7 11:07:06 2011 -0300
Comment 3 renato filho 2011-06-08 22:25:48 EEST
I will mark this bug as waiting to have the unit test working.
Comment 4 renato filho 2011-06-21 23:55:00 EEST
Ok the release is coming, and the fix was merged, no answer from the reporter
them I will mark this as fixed.
Comment 5 renato filho 2011-06-22 20:14:17 EEST
release 1.0.4