Hi,
We just merged Qt5 support into the MITK master, it is not even officially
announced yet. :-) To get things up and running you have to switch the CMake
variable DESIRED_QT_VERSION from 4 to 5 (superbuild level). You most probably
see a new variable appearing then after configuration: QT5_INSTALL_PREFIX. Set
this variable to the path in which the bin folder of Qt5 resides, not the bin
folder itself. The MITK superbuild will build all third-party libraries
including VTL with Qt5-support then and apply according patches if necessary. I
would recommend to do a superbuild from scratch. Make also sure to install a
Qt5 version with Desktop OpenGL support instead of ANGLE.
Best,
Stefan
Von: Alexander Zehner [mailto:[email protected]]
Gesendet: Dienstag, 25. November 2014 12:24
An: [email protected]
Betreff: [mitk-users] 3D render error with qt5 widgets
Hi all,
I pulled the current master branch of the MITK git repo (24.11) and I
successfully compiled from source, switching the use MITK_USE_QT to ON.
Since we are using Qt5 in our application, we are able to embed the ported
QmitkWidgets (to Qt5) in our application.
Everything works fine except the 3D rendering.
My example code looks like this:
mitk::RenderingManager::GetInstance()->InitializeViewsByBoundingObjects(this->dataStorage);
QmitkRenderWindow renderWindow;
renderWindow.GetRenderer()->SetDataStorage(this->dataStorage);
renderWindow.GetRenderer()->SetMapperID(mitk::BaseRenderer::Standard3D);
When I'm running this code I get a runtime error from VTK and nothing is
displayed on the window:
ERROR: In ..\MITK\VTK-src\Rendering\Core\vtkLODProp3D.cxx, line 925
vtkLODProp3D (000000C9A62197E0): Index out of range!
Am I missing something to properly initialize a 3D view, or is the 3D rendering
option not yet supported with the new Qt5 port?
Thanks!
Alex
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users