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 903 - eventFilter in ItemDelegate
: eventFilter in ItemDelegate
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.4
: PC MS Windows XP/Vista/7
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-29 07:12 EEST by L. Lama
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments
Small example. Not working in PySide, fine with PyQt4. (662 bytes, text/x-python)
2011-06-29 07:12 EEST, L. Lama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description L. Lama 2011-06-29 07:12:11 EEST
Created attachment 357 [details]
Small example.  Not working in PySide, fine with PyQt4.

Hi, I'm converting some code from PyQt4 to PySide and have run across this
problem.  When implementing eventFilter in a QStyledItemDelegate, closeEditor
no longer seems to get emitted.  Or if it does, nothing is catching it.  Or I'm
just doing it entirely wrong.

Attached is a small example based on the FAQ entry[1].  It's not working for me
with PySide, while it works fine in PyQt4.

[1]
http://developer.qt.nokia.com/faq/answer/how_can_i_make_the_focus_go_from_one_cell_to_the_next_when_hitting_enter
Comment 1 renato filho 2011-06-29 17:05:15 EEST
Which version of pyside are you testing?

I tested with pyside from gitorious and everything looks fine? What do you
expect to happen with this signal?

Could you describe how to proceed to reproduce the error.
Comment 2 L. Lama 2011-06-30 04:28:20 EEST
I'm using the PySide 1.0.4 binary package for Python 2.6/Win32 under Win7/x64.

Expected result:
1. Enter editor mode for any cell
2. Press return key
3. closeEditor signal emitted, editor created on next field

Actual result:
1. Enter editor mode for any cell
2. Press return key
3. Nothing happens*

*At least, there are no visible changes I can see.  I'm still new to Qt so I'm
not sure how to go about debugging signals to find out.
Comment 3 renato filho 2011-06-30 15:35:29 EEST
Ok now I saw the problem, thanks, I mark this a valid bug.
Comment 4 renato filho 2011-07-05 20:03:59 EEST
fixed on shiboken commit:
commit 81d9cac57c565c1f33d103819fc714a065ac4478
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Jul 5 11:59:33 2011 -0300

and pyside commit:
commit 505cf202fbf82dca6d3742166195273e103057fc
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Jul 5 12:02:15 2011 -0300
Comment 5 renato filho 2011-07-22 22:12:54 EEST
release 1.0.5