简体   繁体   English

QT Qvtkwidget。 交互方式变化

[英]QT Qvtkwidget. Interactorstyle change

My application is using qvtkwidget and I'm trying to change its interactorstyle. 我的应用程序正在使用qvtkwidget,并且我试图更改其interactorstyle。 With its default setting, holding down mouse wheel button moves objects, but I'd like it to be done by mouse right click. 在默认设置下,按住鼠标滚轮按钮可以移动对象,但是我希望通过鼠标右键单击来完成。 Does anyone know how to change it? 有人知道如何更改吗? Thanks. 谢谢。

You have to create your own interactor like drescherjm commented. 您必须像drescherjm一样创建自己的交互器。

There is a nice example on page http://www.cmake.org/Wiki/VTK/Examples/Cxx/Interaction/InteractorStyleUser http://www.cmake.org/Wiki/VTK/Examples/Cxx/Interaction/InteractorStyleUser页面上有一个很好的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM