MantisBT - VTK
View Issue Details
0015469VTK(No Category)public2015-05-14 10:182016-08-12 09:55
David C. Lonie 
Ben Boeckel (Kitware) 
normalminorhave not tried
closedmoved 
6.2.1 
 
TBD
incorrect functionality
0015469: Qt5 no longer provide window-system information
In Qt5, the Q_WS_X11 (and similar) preprocessor definitions are no longer provided, nor is QX11Info.

This causes much of the GLX initialization to be skipped in QVTKWidget, including the configuration of a visual that respects the requested multisampling, alpha planes, stencil buffer, etc.

This means that any build against Qt5 will not provide these features, leading to the broke MSAA report on the mailing list and bugs like http://www.vtk.org/Bug/view.php?id=14630. [^] A rework of QVTKWidget to no longer rely on the Qt4 convenience API is needed to address this issue.
hackaton
related to 0014630closed Utkarsh Ayachit Transparency and linker issues installing against custom QT 5.2.1 bulid 
Issue History
2015-05-14 10:18David C. LonieNew Issue
2015-05-14 10:18David C. LonieRelationship addedrelated to 0014630
2015-07-07 15:47Ben Boeckel (Kitware)Note Added: 0034679
2015-10-19 14:57Utkarsh AyachitTag Attached: hackaton
2015-10-21 11:29Ben Boeckel (Kitware)Note Added: 0035327
2015-10-21 12:45Dženan ZukićNote Added: 0035337
2015-10-21 13:23Dženan ZukićAssigned To => Ben Boeckel (Kitware)
2015-10-21 13:28Jean-Christophe Fillion-RobinNote Added: 0035347
2015-10-21 13:35Ben Boeckel (Kitware)Note Added: 0035350
2015-11-27 10:36Clinton StimpsonNote Added: 0035487
2016-04-08 03:05Jerome VelutNote Added: 0035876
2016-04-08 03:34Jerome VelutNote Edited: 0035876bug_revision_view_page.php?bugnote_id=35876#r1568
2016-04-08 03:34Jerome VelutNote Edited: 0035876bug_revision_view_page.php?bugnote_id=35876#r1569
2016-05-18 13:41Utkarsh AyachitNote Added: 0035991
2016-05-18 13:43Utkarsh AyachitNote Added: 0035992
2016-08-12 09:55Kitware RobotNote Added: 0037387
2016-08-12 09:55Kitware RobotStatusbacklog => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0034679)
Ben Boeckel (Kitware)   
2015-07-07 15:47   
QVTKWidget2 is the way to go here. However, it still has problems with the transparency since Qt5 doesn't set up the OpenGL context properly by default for depth peeling to work fully (other things such as the depth buffer, alpha support, and the stencil buffer are also disabled). I have some patches for QVTKWidget2 which makes it work with Qt5, but it doesn't support OpenGL2 yet.

<https://gitlab.kitware.com/vtk/vtk/merge_requests/372> [^]
<https://gitlab.kitware.com/vtk/vtk/merge_requests/373> [^]
(0035327)
Ben Boeckel (Kitware)   
2015-10-21 11:29   
The linked branches have been merged, so code should be migrating to QVTKWidget2. Should we mark QVTKWidget for deprecation?
(0035337)
Dženan Zukić   
2015-10-21 12:45   
Sure, if QVTKWidget2 works better, we should mark the old one as deprecated.
(0035347)
Jean-Christophe Fillion-Robin   
2015-10-21 13:28   
Is there any reason to keep using QVTKWidget ?

=> Based on Ben comment, QVTKWidget2 doesn't yet work well with OpenGL2.

Having a class with a "2" suffix seems awkward. While there is probably a good historical reason, deprecating and having a plan for removal of the other class may be good.


> problems with the transparency since Qt5 doesn't set up the OpenGL context properly by default for depth peeling

Should an issue be reported to Qt ?
(0035350)
Ben Boeckel (Kitware)   
2015-10-21 13:35   
No, VTK wasn't setting up the context properly.
(0035487)
Clinton Stimpson   
2015-11-27 10:36   
QVTKWidget is not dependent on OpenGL. For example, it may be used with mangled mesa.
QVTKWidget2 does not support that use case.
(0035876)
Jerome Velut   
2016-04-08 03:05   
(edited on: 2016-04-08 03:34)
Strangely, I have a transparency issue with Qt also in my application. But in ParaView!
So what does paraview special on the QVTKWidget ?

*EDIT Ok, forget about it: ParaView uses Qt4 even in 5.0RC :) *

(0035991)
Utkarsh Ayachit   
2016-05-18 13:41   
BTW, this MR is related: https://gitlab.kitware.com/vtk/vtk/merge_requests/1478 [^]
(0035992)
Utkarsh Ayachit   
2016-05-18 13:43   
Also, QVTKWidget2 uses QGLWidget which Qt has deprecated and wants us to use QOpenGLWidget.

http://blog.qt.io/blog/2014/09/10/qt-weekly-19-qopenglwidget/ [^]
(0037387)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.