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 915 - QDeclarativeView.scene().addItem(x) make the x object invalid
: QDeclarativeView.scene().addItem(x) make the x object invalid
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtDeclarative
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-04 23:37 EEST by renato filho
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renato filho 2011-07-04 23:37:01 EEST
The following code raise a exception:

RuntimeError: Internal C++ object (PySide.QtDeclarative.QDeclarativeItem)
already deleted.

The code:

view = QDeclarativeView()
view.scene().addItem(myItem)
myItem.update() <<< this line cause the exception.
Comment 1 renato filho 2011-07-14 23:18:54 EEST
fixed on pyside commit:

commit 1112473783a908e6cf25e8151fc40b58a968480a
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Thu Jul 14 10:28:54 2011 -0300
Comment 2 renato filho 2011-07-22 22:12:58 EEST
release 1.0.5