[vtkusers] VTK 6.2 and PyQt5?
Elvis Stansvik
elvis.stansvik at orexplore.com
Fri Feb 5 11:18:25 EST 2016
2016-02-05 17:15 GMT+01:00 Elvis Stansvik <elvis.stansvik at orexplore.com>:
> 2016-02-05 16:57 GMT+01:00 David Gobbi <david.gobbi at gmail.com>:
>
>> On Fri, Feb 5, 2016 at 7:45 AM, Elvis Stansvik <
>> elvis.stansvik at orexplore.com> wrote:
>>>
>>>
>>> That worked great, except for a small issue with a missing
>>> QWheelEvent::delta() in PyQt5 (see my merge request 1185).
>>>
>>> However, with QWidget as base class, I'm getting some strange rendering.
>>> With QGLWidget it looks fine.
>>>
>>> See the attached screenshot. It shows the cone example from
>>> QVTKRenderWindowInteractor.py with QWidget (left) and QGLWidget (right).
>>> With QWidget, the cone faces seem partly transparent from some angles.
>>>
>>> Any idea what might be going on? This is VTK 6.2.0, Kubuntu 15.10, on
>>> Intel graphics (Thinkpad T440s).
>>>
>>
>> I think you forgot to attach the screenshot. But I probably cannot
>> answer your question, I don't use QVTKRenderWindowInteractor.py very often
>> (I maintain it because I was one of the initial authors, 15 years ago!),
>> and on my own system the QWidget base works fine.
>>
>
> Bah, of course I did. Attaching it here.
>
> I see. Anyone else know what could cause the behavior shown in the
> screenshot?
>
>
>> From what people have reported, the need for QGLWidget varies from system
>> to system and driver to driver. Whatever you discover, please share with
>> the list.
>>
>
> Alright, so you've heard about it before? Should there ever be a need for
> QGLWidget, or should it be reported as a bug?
>
> My system:
>
> Thinkpad T440s
> Intel HD Graphics 4400
> Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0
>
Forgot to say, the Intel graphics driver is version
2.99.917+git20150808-0ubuntu4.
Elvis
> All installed from Kubuntu repos (with backports repositories enabled).
>
> I have no reason not to use QGLWidget instead of QWidget, so it's not a
> big problem. I was mostly curious if others have seen this problem.
>
> Elvis
>
>
>> - David
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160205/de7e124b/attachment.html>
More information about the vtkusers
mailing list