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 688 - The __iadd__ and __isub__ method is missing in QTextFrame.iterator
: The __iadd__ and __isub__ method is missing in QTextFrame.iterator
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta5
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-16 15:11 EET by Bjorn Helge Kjosnes
Modified: 2011-04-29 18:06 EEST (History)
8 users (show)

See Also:


Attachments
Test case to reproduce the bug (1.47 KB, text/plain)
2011-02-17 06:55 EET, Bjorn Helge Kjosnes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjorn Helge Kjosnes 2011-02-16 15:11:43 EET
I have been trying to extract information from a QTextEdit object using code,
but run in to problems iterating the elements inside a QTextDocument. It seams
like there is no way to get to the next element after starting iterating using
the QTextEdit.document().rootFrame.begin() method. You will find that it is
missing the __iadd__ and __isub__ methods in PySide. It is missing in the
documentation as well.

http://www.pyside.org/docs/pyside/PySide/QtGui/QTextFrame.iterator.html is
missing __iadd__ and __isub__
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtextframe-iterator.html
is having both a __iadd__ and an __isub__

I have attached a example that works fine in PyQt4 but not in PySide.
Comment 1 Bjorn Helge Kjosnes 2011-02-17 06:55:12 EET
Created attachment 265 [details]
Test case to reproduce the bug
Comment 2 Hugo Parente Lima 2011-02-17 14:24:59 EET
Thanks for the report and the unit test, prioritizing as P3, not a crash not a
enhancement.
Comment 3 Marcelo Lira 2011-03-18 20:15:36 EET
We should add the __iter__() and next() iterator methods.
Comment 4 renato filho 2011-04-08 17:30:56 EEST
fixed on pyside commit:
commit a0c72f28c6a4de2a26cb38bd81cc22cd95a40e78
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Wed Apr 6 16:04:55 2011 -0300

shiboken commit:
commit bb3197746859a57f96cef50f329e89e31191f4e4
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Wed Apr 6 16:01:35 2011 -0300

apiextractor commit:
commit bb03f77333fa923b9a747af47a6f7f0f252f4ec6
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Wed Apr 6 18:17:59 2011 -0300
Comment 5 renato filho 2011-04-29 18:06:06 EEST
PySide release 1.0.2