[vtkusers] VTK 8.0.1 with Qt 5.10.1

Michael Jackson mike.jackson at bluequartz.net
Mon Mar 5 08:03:14 EST 2018


And also the old QVTKWidget will not work properly with Retina screens on macOS ( not sure about other operating systems). The problem you describe sounds like a retina issue we had before all the retina fixes were put into VTK 8.1

 

--

Michael Jackson | Owner, President

      BlueQuartz Software

[e] mike.jackson at bluequartz.net

[w] www.bluequartz.net

From: vtkusers <vtkusers-bounces at vtk.org> on behalf of Zoltan Kovacs <Zoltan.Kovacs at esi-group.com>
Date: Monday, March 5, 2018 at 3:52 AM
To: "'Andrew J. Buckler (Elucid Bioimaging)'" <andrew.buckler at elucidbio.com>, "'vtkusers at vtk.org'" <vtkusers at vtk.org>
Subject: Re: [vtkusers] VTK 8.0.1 with Qt 5.10.1

 

Hi,

 

Why don’t you use QVTKOpenGLWidget instead of QVTKWidget? The latter one is obsolete and its application is already deprecated. I am not sure if it is correctly supported by the VTK development now. QVTKOpenGLWidget takes over the window management and OpenGL context creation, which is a different solution compared with QVTKWidget.

 

Regards,

Zoltan

 

From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of Andrew J. Buckler (Elucid Bioimaging)
Sent: Donnerstag, 1. März 2018 23:27
To: vtkusers at vtk.org
Subject: [vtkusers] VTK 8.0.1 with Qt 5.10.1

 

Hello,

I have a successfully built and running application using VTK (multiple versions, including 8 and earlier) running with Qt 5.5.1. It uses QVTKWidget extensively. At this time I am working to upgrade to Qt 5.10.1, specifically pairing it with VTK 8.0.1.

 

Having successfully built Qt from source, I built VTK as follows:

tar -xvzf VTK-8.0.1.tar.gz
mkdir VTK-8.0.1-build
cd VTK-8.0.1-build
cmake -DCMAKE_CXX_FLAGS=-std=c++11 -DBUILD_SHARED_LIBS:BOOL=OFF -DQT_QMAKE_EXECUTABLE:PATH=/usr/local/Qt-5.10.1/bin/qmake -DCMAKE_PREFIX_PATH=/usr/local/Qt-5.10.1/ -DVTK_Group_Qt:BOOL=ON -DVTK_Group_Qt=1 -DVTK_QT_VERSION=5 ../VTK-8.0.1
make -j4
make install

 

My application compiles and links without error on macOS 10.13, but the QVTKWidgets have erratic and inconsistent behavior.  Specifically:

1.       Two of them work perfectly well. 

2.       Some of them do not work at all, that is, have either a blank content or seem to have a double-buffering error where old content from a portion of the screen where the widget is supposed to be displays previously displayed content at that location, rather than the correct content.

3.       Some of them show the correct content for a second or two and then revert to blank.

 

It may be that the VTK build needs to be done with different flags, or some known incompatibility exists, or anything else. If anyone has run into this your help would be appreciated, or short of seeing the problem specifically any suggested debugging strategies would be great.

 

With thanks,

Andy

_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180305/48ff4eb3/attachment.html>


More information about the vtkusers mailing list