View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013154VTK(No Category)public2012-05-07 11:292014-10-03 21:08
ReporterFélix C. Morency 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version6.1.0 
Summary0013154: VTK Qt Python wrapper unusable under Windows
DescriptionThe toy example in [1] doesn't work under Windows (tested with PySide
v1.1.0, PyQt4 v4.9.1, VTK 6.0.0 commit
6214dd0542d64a66c8a94797e938f1b15da747d2, Python 2.7.3):

The source of the problem is located in QVTKRenderWindowInteractor.py:158

       self._RenderWindow.SetWindowInfo(str(int(self.winId())))

With PySide, the winId() method returns a PyCObject. The bug is known
and has been reported (see [2]). With PyQt4, the winId() method
returns a 'sip.voidptr' that needs to be handled accordingly.

[1]: https://gist.github.com/2596951 [^]
[2]: https://bugreports.qt-project.org/browse/PYSIDE-46?focusedCommentId=177492#comment-177492 [^]
TagsNo tags attached.
ProjectTBD
Typecrash
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0033579)
Ben Boeckel (Kitware) (developer)
2014-10-03 20:24

Looks related to recent changes about swig and voidp stuff. David?
(0033580)
David Gobbi (developer)
2014-10-03 21:04

Kind of related, but it will be unaffected by my change.

This problem sounded familiar to me so I checked the logs, it looks like a fix has already been merged. The code that the reporter mentioned in the report has already been replaced with PyCObject code.

commit 493dee9d11fddb9d78697e986caa846d76e264ac
Author: Rodrigo Mologni <rodrigomologni@gmail.com>
Date: Thu Sep 26 14:24:39 2013 -0300
This commit fixes an interoperability issue with PySide.
(0033581)
David Gobbi (developer)
2014-10-03 21:08

Fixed in the following commit:

commit 493dee9d11fddb9d78697e986caa846d76e264ac
Author: Rodrigo Mologni <rodrigomologni@gmail.com>
Date: Thu Sep 26 14:24:39 2013 -0300
This commit fixes an interoperability issue with PySide.

- Issue History
Date Modified Username Field Change
2012-05-07 11:29 Félix C. Morency New Issue
2014-10-03 20:24 Ben Boeckel (Kitware) Note Added: 0033579
2014-10-03 21:04 David Gobbi Note Added: 0033580
2014-10-03 21:08 David Gobbi Note Added: 0033581
2014-10-03 21:08 David Gobbi Status backlog => closed
2014-10-03 21:08 David Gobbi Resolution open => fixed
2014-10-03 21:08 David Gobbi Fixed in Version => 6.1.0


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker