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 585 - QTreeWidgetItem disappear
: QTreeWidgetItem disappear
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-04 10:36 EET by Piotr Sokołowski
Modified: 2011-01-06 16:19 EET (History)
8 users (show)

See Also:


Attachments
Example (725 bytes, text/x-python)
2011-01-04 10:36 EET, Piotr Sokołowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Sokołowski 2011-01-04 10:36:33 EET
Created attachment 209 [details]
Example

Thank You for resolving bug 574, but QtreeWidget seems to be a little bit
unlucky for me.
Please find enclosed simple program that shows another problem with parent()
function. Expected result is to show two items in tree, and that is the result
in PyQT4, but in PySide i see only one item. Problem exist when
QtreeWidgetItems are not assigned to any variable, and when function parent()
is used on one of them.
I decided to create a new bug because I wasn't sure if I should reopen (again)
bug 547. It's not segfault but it's definitely another problem with parent()
function.
Comment 1 Matti Airas 2011-01-04 10:47:29 EET
Thanks for reporting this and sorry for the inconvenience. :-I And yes, filing
a new bug was appropriate in this case because the bugs would appear to be
unrelated.

Since this is a "regular" bug (not a crasher), I'm prioritizing this P3.
Comment 2 renato filho 2011-01-04 10:52:31 EET
At the first look this is a problem on function topLevelItem the returned value
is destroyed after the call if not stored in other var.
Comment 3 Piotr Sokołowski 2011-01-04 11:07:20 EET
I don't think that this problem is related with topLevelItem() because problem
exists also with getting items by findItems().
Comment 4 renato filho 2011-01-06 15:09:16 EET
fixed on pyside commit:
commit 932d9bced913443c4b339dccd204eeceed6385d6
Author: Renato Araujo Oliveira Filho <renato.filho@openbossa.org>
Date:   Thu Jan 6 13:32:35 2011 -0300
Comment 5 renato filho 2011-01-06 16:19:38 EET
released on beta3