Install QVTK widget as a plugin

27 篇文章 0 订阅

The QVTK Widget is one of the main 'bridges' from Qt to VTK (Titan). It's a widget that shows a OpenGL representation of some kind and it allows a titan data structure (vtkTree, vtkGraph) to be displayed in a vtkView and it translates Qt events (mouse click, move,etc) into VTK events.

The first item to address is to make sure the QVTK widget is compiled as a plugin

In the VTK CMake you should already have the QVTK widget turned on "VTK_USE_QVTK".

Now you must install that widget as a plugin to the Qt Designer application. This is a manual process but you only need to do it once. Here's the instructions:

  • Windows
    • Go to your VTK build directory, go into the release directory (if you haven't compiled VTK in release yet, you will need to do that now :)
    • Find QVTKWidgetPlugin.dll and move that file into you designer plugins folder (usually something like C:\Qt\4.2.3\plugins\designer)
    • Restart designer. You should have the QVTK widget as an option in the very bottom left toolbar of designer now.


  • Linux
    • Go to your VTK build directory, go into the release directory (if you haven't compiled VTK in release yet, you will need to do that now :)
    • Find QVTKWidgetPlugin.so and move that file into you designer plugins folder (usually something like \home\bob\software\Qt\4.2.3\plugins\designer)
    • Restart designer. You should have the QVTK widget as an option in the very bottom left toolbar of designer now.


  • MAC (can someone please fill this in?)
    • Go to your VTK build directory, go into the release directory (if you haven't compiled VTK in release yet, you will need to do that now :)
    • Find QVTKWidgetPlugin.so and move that file into you designer plugins folder (usually something like \home\bob\software\Qt\4.2.3\plugins\designer)
    • Restart designer. You should have the QVTK widget as an option in the very bottom left toolbar of designer now.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值