All Questions
Tagged with qvtkwidget c++
52 questions
0
votes
0
answers
45
views
I want to add buttons on QVTKOpenGLNativeWidget
qt can add buttons to widgets in Windows, but QVTKOpenGLNativeWidget can't. I want to add a fixed button to the QVTKOpenGLNativeWidget. How do I do that
I tried it by way of layout
QPushButton *...
0
votes
0
answers
95
views
Try to have a vtkInteractorStyleImage with vtkGenericOpenGLRenderWindow
I'm trying to build an application with Qt and VTK. I want to display a 3D image (DICOM) in a widget like QVTKOpenGLNativeWidget and be able to change slices using the mouse wheel (and other thigs).
I ...
0
votes
1
answer
283
views
Calling vtkRenderWindow's Render() but no update when running QT project for a long time
I have a QT project that uses the class called QtVTKViewer. All the QWidgets in the project use QtVTKViewer and added in the stackwidget of QT. The first QWidget allows the user to add and adjust ...
0
votes
0
answers
408
views
QVTKOpenGLNativeWidget fails in debug mode
My C++ program in Visual call QVTKOpenGLNativeWidget and works fine in Release mode. However, when I change to Debug mode it fails to build which seems yo be related to Qt5Core. Note that Qt5Core.dll ...
0
votes
1
answer
438
views
Mouse control is lost after using vtk interactor
I'm trying to visualize a vtk unstructuredgrid mesh.
In order to get the coordinate of a point of my mesh I use the vtk interactor.
I'm able to get the point coordinate by selecting the point using ...
0
votes
0
answers
160
views
Memory leak in PCL visualizer and QVTK widget
I m using Ubuntu 20.04 with Qt5.12 for developing a QT project which uses a QVTK widget to display a 3D PCL visualiser. I m facing memory leak issues after defining the visualiser and vtk widget ...
1
vote
0
answers
139
views
Disable "q" Onchar() vtkInteractorStyleSwitch
So i'm try to create my own custom interactor style inheriting from the vtkInteractorStyleSwitch.
This issue im having is that im trying to disable the "q" shortcut for closing the vtk ...
1
vote
0
answers
1k
views
'QVTKWidget.h' file not found
I installed PCL 1.8.0 on Ubuntu 18.04 but I encountered an error while installing a repo.
[ 88%] Building CXX object CMakeFiles/tviewer.dir/tviewer/tviewer_widget/tviewer_widget.cpp.o
In file included ...
0
votes
1
answer
358
views
how to extract the foreground from vtkWindowToImageFilter?
I'm integrating vtk with qt, i have vtkWindowToImageFilter with input set to vtkGenericOpenGLRenderWindow, how come i extract the image foreground only?
vtkWindowToImageFilter *w2if = ...
0
votes
1
answer
192
views
Connect user custome function to modify VTK object with Qt Widgets
I'm currently working on the conversion of a project initially made under python, allowing to modify the visualization of a .vtk file with a Qt interface essentially made of sliders. The project under ...
2
votes
1
answer
619
views
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(...
0
votes
2
answers
238
views
how to compile vtk-master with qt5 and visual sudio 2015?
When I compile the vtk-master with vs 2015(update 1) and QT5, I see an error as:
Error C2039 'Frame': is not a member of 'QGL Widget' GUI Support Qt Open GL C:\VTK\SOURCE\source\GUISupport\...
1
vote
1
answer
551
views
QVTKWidget + vtkPropPicker fails wrong coordinates
I'm using vtkPropPicker with QVTKWidget, but it is not working: pick position is always (0,0,0) and actor is NULL when clicking on the white sphere. Clicking on the empty region however returns ...
1
vote
1
answer
80
views
Issue with QVTKWidget in Qt Ros workspace
I am new to Qt and ROS.
I am working on Qt Creator 4.8.0. I have created a catkin workspace in Qt and a mainwindow was created.
And I am trying to add QVTKWidget to the mainwindow. It was successfully ...
1
vote
1
answer
329
views
SetWidth() and SetHeight() in vtkActor2D causes a crash after a rendering call
I'm trying to overlay text on an image in vtk when a certain button is clicked. I use a vtkTextActor, vtkTextRepresentation, and vtkTextWidget to achieve this.
Here is my code:
// set up actor
...
0
votes
1
answer
675
views
Point Cloud Library: Sliced points to custom colors
I'm using pcl and vtk library with Qt for point cloud visualization.
My setup is as the below link http://unanancyowen.com/en/pcl-with-qt/
Now when we slice points ie, press 'x' and select a region ...
-1
votes
1
answer
3k
views
QVTKWidget was deprecated for VTK 8.1 and will be removed in a future version
When i create a qt gui vtk application by Cmake,then i run it with vs 2017.It appears fllowing warning.Any counld tell me how could i cancel this warning?Thank you a lot.enter image description here
2
votes
1
answer
1k
views
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()->...
1
vote
1
answer
191
views
Add error bars to a VTK 2D scatter plot
Is there a way to add error bars to scatter plot data using VTK? I am currently plotting point data using the C++ API; there is uncertainty associated with the data I am trying to plot which I would ...
0
votes
0
answers
26
views
QVTKOpenGLWidget with Qt 5.9.5 [duplicate]
I am trying to integrate a VTK render window in a Qt GUI. Using QtCreator/Designer, I added an openGLWidget to the MainWindow and promoted it to QVTKOpenGLWidget. When I try to compile, the compiler ...
1
vote
1
answer
1k
views
Stopping VTK Timer Callback
Referring to This example: https://lorensen.github.io/VTKExamples/site/Cxx/Utilities/Animation/
I made a small change in the callback function, to stop it after certain number of timer count.
#...
3
votes
0
answers
1k
views
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 ...
0
votes
3
answers
1k
views
registerPointPickingCallback (PCLViewer::callback_Test,(void*)&viewer); returns C3687 non-standard syntax; use '&' to create a pointer to member
I am trying to use the point clicking callback of PCLvisualizer. The code uses the QVTKwidget to show the PCLvisualizer in a qt GUI. The project below compiles fine and works but when I include this ...
0
votes
1
answer
397
views
How to force re-rendering after adding point to a vtkPlot in a qvtkWidget?
In QT I have a qvtkWidget in which I plot a graph.
I use two functions:
The following function initializes the plot with two points (0,0) and (0,1):
bool VTKPlotter::initPlot(){
// Create a ...
3
votes
1
answer
838
views
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. ...
0
votes
1
answer
839
views
Display many MRI slices in one window
Is it possible to display all MRI images side by side in one VTK , or maybe even QT window?
So far I've got all MRI slices from reconstruction in a matrix vector and I can scroll them (write in c++). ...
0
votes
0
answers
551
views
PclVisualizer with QVTKWidget and Qt
I'm new to pcl and Qt
I want to add vtkBoxWidget2 to pclVisulaizer in Qt :
So far, the main parts of the code looks something like this :
pclVisualizer(new pcl::visualization::PCLVisualizer("PCL ...
2
votes
0
answers
507
views
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 ...
1
vote
1
answer
914
views
Using QVTKOpenGLWidget in Qt Quick 2
Is it possible to use QVTKOpenGLWidget in a Qt Quick 2 application leveraging QML? I understand that it will be made to work with a vtkGenericOpenGLRenderWindow, but it just isn't clicking in my head ...
2
votes
0
answers
153
views
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 ...
0
votes
2
answers
1k
views
Vtk Qt scene with >50 (moving) actors
I am trying to implement (fairly) simple scene where I have ~50 cubes which are moving in certain directions. The position of the cubes changes 20 times per second.
My first shoot was adding and ...
0
votes
1
answer
1k
views
vtkDelaunay3D save triangulation
I am using VTK to generate a 3D Delaunay triangulation from a list of input points that are obtained using terrestrial laser scanner. So far, I successfully generated some 3D triangulations and saved ...
3
votes
2
answers
8k
views
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 ...
1
vote
1
answer
1k
views
How do I interactively select region of interests on vtk?
I am using vtk with QT. Currently I read a series of Dicom Images using vtkDicomImageReader and visualize them with vtkImageViewer2 into slices.
Now I want to use mouse to pick some points and ...
1
vote
2
answers
2k
views
VS2015 + VTK 7.1.0 + Qt 5.8.0 running Qt examples from VTK entry point failure
Currently I am trying to use the VTK library in combination with Qt to build an application to visualize STL-files. To get started I installed the following libraries/programs:
Visual Studio 2015 ...
1
vote
0
answers
155
views
Why is VTK_INIT_MODULE([...]) needed in a QT application with QVTKWidget?
I started trying out the VTK with QT. I've set up everything with cmake and as Compiler VS15(x64) and thought I just can use stuff like the QVTKWidget in a QT application without needing to specify ...
1
vote
0
answers
367
views
Trying to use VTK-6.3.0 and Qt-4.8.5 with QtCreator-4.1 on Windows 10
For a project I need to use VTK and Qt (with QtCreator on C++) on Windows 10 but I have an issue.
Let me explain what I've done before going further:
I Install QtCreator-4.1 with MinGW 32bit and Qt-...
-1
votes
1
answer
260
views
VTK Qt Widget throwing runtime errors when placed in a GUI
I'm trying to use the VTK widget with QT. I placed it in a .ui file, and even though I did nothing else to it, I get this error when I run the program:
ERROR: In /build/buildd/vtk-5.8.0/Filtering/...
0
votes
1
answer
1k
views
access violation exception when use VTK and QT multi-thread
I am using a QVtkWidget in my mainwindow. I generate a vtkRenderer in a new thread and when it is done, I send a signal which connect a slot of mainwindow to send the renderer back and update the ...
0
votes
0
answers
754
views
Cmake can't find qt when building vtk
I am getting the following error while trying to build vtk with qt support:
CMake Error at CMakeLists.txt:370 (MESSAGE):
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE
...
-2
votes
3
answers
541
views
connection signal with slots in Qt with VTK (C++)
I have a Qt application with visualisation of a VTK data
now what i want to do is to capture the point from thr VTK data (3 coordinates) and then launch a function from the MainWindow class (...
0
votes
1
answer
148
views
How to get angle value in vtkAngleWidget class?
I am using Visual Studio C# and i want to get angle with using vtkAngleWidget.
VTK Angle Widget Sample - Image
public void addAngleWidget() {
angleWidget = new vtkAngleWidget();
...
0
votes
2
answers
1k
views
Segmentation fault when using graph function (vtk 6.1, Qt5.3, Ubuntu)
Update: Debug info
I am working on a Qt 5.3 project and need to plot data in 2D and 3D coordinate systems. I've been looking into vtk 6.1 because it seems very powerful overall and I will also need ...
2
votes
1
answer
1k
views
QT & VTK Interaction Style
I am using VTK as qvtkwidget to display 3D objects in QT.
I know I can change its interaction style by making my own modified interaction style.
I wanna rotate and move an object by right click and ...
0
votes
1
answer
948
views
QT Qvtkwidget. Interactorstyle change
My application is using qvtkwidget and I'm trying to change its interactorstyle.
With its default setting, holding down mouse wheel button moves objects, but I'd like it to be done by mouse right ...
0
votes
1
answer
1k
views
vtk chart - how to draw axis labels at the end of axis lines?
Is it possible to draw axis labels at the end of labels?
See picture for details:
http://habrastorage.org/files/94f/41a/b18/94f41ab1897a4bde815644bf287b4af9.png
If it is possible, how?
vtkNew<...
0
votes
1
answer
378
views
QMainMenu behaves weirdly if QVTKWidget is the central widget of QMainWindow
Ok it took me a while to track this down, but I have no idea how to resolve it.
The main menu in my Qt/vtk application is behaving weirdly. Clicking behaviour on the menu is as follows:
First click: ...
1
vote
2
answers
3k
views
renderWindowInteractor in QVTKWidget
I'm a new user in VTK, i need put a renderWindowInteractor in the
QVTKWidget of QTCreator. I have this:
vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New();
...
1
vote
2
answers
3k
views
VTK 6.1 and Qt 5.3: 3D Objects in QVTKWidget with bad transparencies
Base: Debian 7.5 Wheezy 64 bits - Qt 5.3 installed from Online Installer; VTK 6.1 successfully compiled and installed manually with Qt support.
Result: A 3D sphere is displayed in a 3D QVTK window. ...
3
votes
1
answer
1k
views
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 ...