Questions tagged [qvtkwidget]

Use this tag for questions related to `qvtkwidget`, a class of the Visualization ToolKit (VTK) within the Qt Framework.

QVTKWidget displays a VTK window in a Qt window.

VTK (The Visualization ToolKit) is an software system for 3D computer graphics, image processing, and visualization. It consists of a C++ class library, and several interpreted interface layers including Tcl/Tk, Java, and Python.

Read more here.

110 questions
4
votes
1 answer

PyQt5 + VTK - wglMakeCurrent failed error

Minimum working example: from sys import exit from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QHBoxLayout, QLabel, QFrame from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor import vtkmodules.all as vtk from…
vardonir
  • 135
  • 9
4
votes
1 answer

Using vtkOrientationMarkerWidget with QVTKRenderWindowInteractor [PyQt4/PySide]

I working on a PySide/vtk GUI using QVTKRenderWindowInteractor widget class. The widget is working well, unless when I try to add a orientation axis (see image) using vtkOrientationMarkerWidget: axesActor = vtk.vtkAxesActor(); axes =…
SAAD
  • 759
  • 1
  • 9
  • 23
3
votes
2 answers

VTKWidget in Qt is not updated as expected

I would like to display a 3D-Animation in my Qt5-Gui. Everything works as expected, but unfortunately the scene is not getting updated when I don't interact with the vtkWidget. In other words: When I want to see the animation, I need to click…
cakelover
  • 177
  • 5
3
votes
0 answers

using QVTKOpenGLWidget with Qt causing project to crash

I have a working project on Qt using pcl and vtk....I was using QVTKWidget. Now I need to re-build the project using QVTKOpenGLWidget as QVTKWidget is deprecated This post suggests that the latest PCL version from master should be used…
Tamim Boubou
  • 75
  • 11
3
votes
1 answer

Cannot remove a Point Cloud from pclvisualizer in Windows, although it works in Linux

I am working with QT and have a QVTKWidget (pclvisualizer) viewer to render and show the point clouds in my program. I add a cloud with the ID name to my viewer which works well in Linux and Windows. But when I try to remove the point cloud from…
MrJonas
  • 197
  • 11
3
votes
2 answers

How to rotate a vtk scene around a specific point?

I have a 3D vtk scene representing a point cloud, displayed through a QVTKWidget. vtk7.1, Qt5.8. I want to be able to rotate the scene around specific coordinates, but I don't know how to proceed. I like the trackball interaction. I just need to set…
eti_nne
  • 126
  • 1
  • 8
3
votes
1 answer

How to subclass vtkActor

I wanted to be able to access my underlaying data structure when I pick a vtkActor. A class derived from vtkActor holding a ptr to my data structure seemed the easiest approach. I get the subclass to compile just fine but the actor does not seem to…
dudu
  • 675
  • 6
  • 15
3
votes
1 answer

Ajust QVTKWidget to window

How can I make my QVTKwidget to adjust when I make my window expand or shrink? I have more widgets in my layout. I want them to stay the same, just expand shrink the QvtkWidget. I found some things about the layout, but I can't use it on QVTKWidget.
SamuelNLP
  • 4,038
  • 9
  • 59
  • 102
2
votes
1 answer

PyVista: Why does the callback only draw the 3d entities and not the 2d one on the second time?

I have a question and hope that you can help me. I put together a small MCVE below. When you click the button for the first time, you can see that the 3d data (add_mesh, add_points) and 2d data (chart.scatter) show up. If you click it again only the…
Joe
  • 6,758
  • 2
  • 26
  • 47
2
votes
1 answer

undefined reference to 'QVTKWidget::QVTKWidget'

The env is VTK-8.0 ITK-5.2 QT-5.12 This error occurs when I compile this cmake file: cmake_minimum_required(VERSION 3.3 FATAL_ERROR) project(QtDICOMViewer) find_package(VTK REQUIRED) #find_package(VTK COMPONENTS # vtkCommonCore # …
hhz
  • 143
  • 7
2
votes
0 answers

Point cloud not showing up in Qt+PCL viewer

I'm trying to load and display point clouds through a Qt+PCL configuration. I managed to load and display a smaller point cloud (~60 thousand points), but could't display a larger one (~3 million points). Worrying that it might be a limitation on…
MarcosDiaz
  • 21
  • 3
2
votes
1 answer

Hide vtkOutputWindow

How can I hide vtkOutputWindow? No suppress by GlobalWarningDisplayOff() or redirect output to file but only hide. (And show again after some time via something like vtkOutputWindow::GetInstance()->DisplayText(" ")). Thanks. PS. I use Qt gui on…
Bleach
  • 156
  • 3
  • 15
2
votes
0 answers

QVTKWidget not displaying objects wall's

I'm using the integration Qt-VTK widget (QVTKWidget) and the VTK objects i want to visualize do not display the way they supposed to. I have modified the code of the CylinderRenderingPropertiesExample located on VTKExamples site. The code #include…
Hernan
  • 1,149
  • 1
  • 11
  • 29
2
votes
0 answers

Qt and VTK graphical issue on MacOS when using QVTKWidget and QMainWindow

I get a graphical glitch with the top toolbar in a QMainWidow when going fullscreen with macOS. The issue appears when using QVTKWidget in the central widget. Minimal program that reprodcues the issue: #include #include…
jonob23
  • 21
  • 1
2
votes
1 answer

python VTK context menu not at mouse position

I am having problems with the context menu position in VTK with PyQt. The main GUI window has set the VTK widget as central widget: from vtk_widget.vtk_widget import VTKWidget class DySMainWindow(QtGui.QMainWindow): def __init__(self): …
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
1
2 3 4 5 6 7 8