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 372 - DiagramScene (GraphicsView) Example not working
: DiagramScene (GraphicsView) Example not working
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Examples
: 0.4.1
: All All
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2010-09-21 11:33 EEST by Rodrigo Ferreira de Souza
Modified: 2010-10-13 13:48 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 Rodrigo Ferreira de Souza 2010-09-21 11:33:42 EEST
I'll need to do something like the DiagramScene example here at work, but this
example is not working property.

When I try to insert an item to the diagram, the callback function is called (I
already checked it) but the item is not inserted into the graphview.

I checked the callback into the C++ example from QT page
(http://doc.qt.nokia.com/4.7/graphicsview-diagramscene-mainwindow-cpp.html),
and it is doing the same as the Python example..

I'm not sure, but I think the problem is with PySide.
Comment 1 Rodrigo Ferreira de Souza 2010-09-21 11:48:23 EEST
Another thing about this program is that it always print an error when finish
$ python diagramscene.py 
Fatal Python error: PyEval_SaveThread: NULL tstate
Aborted
Comment 2 Rodrigo Ferreira de Souza 2010-09-21 11:52:45 EEST
into this line:

self.scene.setMode(self.pointerTypeGroup.checkedId())

the return of self.pointerTypeGroup.checkedId() is number 3, but for me it
looks like the right number is 0 for insert item...
Comment 3 Hugo Parente Lima 2010-09-27 16:23:55 EEST
Fixed in commit:

pyside/199b8b3baee2e3297413636a63ca09abe6aac39a
Comment 4 Hugo Parente Lima 2010-09-27 16:35:44 EEST
Oops, wrong bug, the message was supposed be on bug#375
Comment 5 Hugo Parente Lima 2010-09-29 17:31:54 EEST
Fixed on commit:
pyside/eabb9d37a78d1c584fe7e70928f0e820bd6e0afc
Comment 6 renato filho 2010-10-13 13:48:52 EEST
released on PySide 0.4.2