MantisBT - VTK
View Issue Details
0013154VTK(No Category)public2012-05-07 11:292014-10-03 21:08
Félix C. Morency 
 
normalminorhave not tried
closedfixed 
5.8.0 
6.1.0 
TBD
crash
0013154: VTK Qt Python wrapper unusable under Windows
The 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 [^]
No tags attached.
Issue History
2012-05-07 11:29Félix C. MorencyNew Issue
2014-10-03 20:24Ben Boeckel (Kitware)Note Added: 0033579
2014-10-03 21:04David GobbiNote Added: 0033580
2014-10-03 21:08David GobbiNote Added: 0033581
2014-10-03 21:08David GobbiStatusbacklog => closed
2014-10-03 21:08David GobbiResolutionopen => fixed
2014-10-03 21:08David GobbiFixed in Version => 6.1.0

Notes
(0033579)
Ben Boeckel (Kitware)   
2014-10-03 20:24   
Looks related to recent changes about swig and voidp stuff. David?
(0033580)
David Gobbi   
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   
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.