Skip to content
QtWS25 Last Chance
  • Visualize Realtime pointclouds on QT widget

    Moved Unsolved General and Desktop qt5 widget pcl vtk
    6
    0 Votes
    6 Posts
    1k Views
    S
    @ZaidX said in Visualize Realtime pointclouds on QT widget: I dont understand what do you mean by "if its pure qt without any hardware accleration" . With this I mean that you derive from QWidget and implement paint() using QPainter. This is comparatively slower than OpenGL or Vulkan. For these you need a QOpenGLWidget or QVulkanWindow. This then allows to use OpenGL or Vulkan directly for drawing while still using Qt for everything else (including mouse handling). @ZaidX said in Visualize Realtime pointclouds on QT widget: Bandwith: 3.55MB/s Frequency: 4.9Hz This sounds doable. Though it doesn't mean it is easy to reach interactive speeds.
  • 0 Votes
    6 Posts
    797 Views
    J
    @JoeCFD I was working on other stuffs but now I remember why I can't override QQuickItem update() method... it is a non-virtual slot, so it can't solve my rendering issues. I am still looking for a solution ...
  • 0 Votes
    4 Posts
    767 Views
    SGaistS
    C++ does not work like that. Create a proper subclass and then use that one for the member variable.
  • 0 Votes
    2 Posts
    515 Views
    SGaistS
    Hi, Why did you build the VTK integration with a different version of Qt ?
  • 0 Votes
    15 Posts
    2k Views
    S
    After building the VTK using Qt5.13.2, I uninstalled the Qt version since I already have 5.12.6. While running a sample code to check the VTK plugin I m getting the following linker error: 09:49:20: Running steps for project pcl_visualizer... 09:49:20: Starting: "/usr/bin/cmake" --build . --target all [ 20%] Automatic MOC and UIC for target pcl_visualizer [ 20%] Built target pcl_visualizer_autogen [ 40%] Linking CXX executable pcl_visualizer /usr/bin/ld: /usr/local/lib/libvtkGUISupportQt-7.1.so.1: undefined reference to `qt_version_tag@Qt_5.13' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/pcl_visualizer.dir/build.make:254: pcl_visualizer] Error 1 make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/pcl_visualizer.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 09:49:21: The process "/usr/bin/cmake" exited with code 2. Error while building/deploying project pcl_visualizer (kit: Desktop Qt 5.12.6 GCC 64bit) When executing step "CMake Build" 09:49:21: Elapsed time: 00:01. I m using CMake system and I tried the solution given here but it is not working. Should I create a different thread for this?
  • 0 Votes
    10 Posts
    2k Views
    S
    Official doc says libQVTKWidgetPlugin.so is required to be copied to plugins/designer directory, I have seen many setup tutorial pages which convey the same like this and this.
  • 0 Votes
    4 Posts
    946 Views
    Please_Help_me_DP
    If possible maybe somebody could clone the repository and try it his computer to open project and run CMake. Not necessary to build the project (it may take 9 hours) but before launching CMake set build dir path as short as possible (I have build folder C:\S\b and the source C:\S\Slicer) because Slicer has some problems with path length and CMake will throw an error if build folder path is too long. I'm very interested in working on this project in QtCreator and not in Visual Studio but that QtCreator's behavior doesn't leave me any chances.
  • Add VTK library to Qt project

    Solved C++ Gurus vtk
    42
    0 Votes
    42 Posts
    16k Views
    Please_Help_me_DP
    @SGaist ahaha thank for gremlins)
  • Point Cloud Library: Sliced points to custom colors

    Solved Mobile and Embedded qt 5.7 vtk pcl
    2
    0 Votes
    2 Posts
    887 Views
    S
    we can change the rgb values of each point in a cloud
  • VTK integration in PyQt (wrong layout)

    Unsolved General and Desktop python vtk pyqt pyqt5
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, You are replacing the central widget in OpenVTK. You should rather add your widget to the current central widget's layout.
  • 0 Votes
    2 Posts
    2k Views
    gde23G
    Found the error myself. In the include dir there still was the file vtkGUISupportQtModule.h from the vtk-build included which defines VTKGUISUPPORTQT_EXPORT __declspec(dllexport) now its working
  • 0 Votes
    8 Posts
    5k Views
    SGaistS
    It went in but after the release of 5.8.0. So if you need it, either check the 5.9 alpha or build from Git.
  • Contour plot

    Unsolved General and Desktop contour plot qwt vtk filled contour
    9
    0 Votes
    9 Posts
    10k Views
    l1q1d56L
    Hi to all, I succeded in extracting from the data contours as path. Anyone knows how to plot them using qt charts? http://doc.qt.io/qt-5/qtcharts-areachart-example.html I need to create area charts with empty areas inside.
  • 0 Votes
    3 Posts
    2k Views
    J
    @SGaist Thank you very much! The wrong installer was the problem.
  • Opening a DCM file with VTK

    Unsolved General and Desktop vtk c++ qt widget image display image processin
    4
    0 Votes
    4 Posts
    3k Views
    sankarapandiyanS
    you have to download dicom folders with images and then copy this code there , #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkDICOMImageReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { std::string inputFilename ="path of dicomm images/xr_hands.dcm"; // Read all the DICOM files in the specified directory. vtkSmartPointer<vtkDICOMImageReader> reader = vtkSmartPointer<vtkDICOMImageReader>::New(); reader->SetFileName(inputFilename.c_str()); reader->Update(); // Visualize vtkSmartPointer<vtkImageViewer2> imageViewer = vtkSmartPointer<vtkImageViewer2>::New(); imageViewer->SetInputConnection(reader->GetOutputPort()); vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); imageViewer->SetupInteractor(renderWindowInteractor); imageViewer->Render(); imageViewer->GetRenderer()->ResetCamera(); imageViewer->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } it will definetly runs without error .. you must gave a riht path of dicom images
  • 0 Votes
    10 Posts
    3k Views
    Lays147L
    @alex_malyu I found the problem. Im use the class QVTKWidget2 where the return of the GetRenderView is different. Now i change to QVTKWidget and what you said make coherence to me. vtkWidget is just the name of the class that i make. dont cate.
  • Cmake dont find VTK library [SOLVED]

    Unsolved General and Desktop qt5.5.1 vtk
    2
    0 Votes
    2 Posts
    3k Views
    M
    VTK_DIR should be set to the cmake directory; not the include directory. Probably the following in your case: /usr/local/lib/cmake/vtk-6.3 You'll also need the following in your CMakeLists.txt file find_package(VTK REQUIRED) include(${VTK_USE_FILE})
  • 0 Votes
    16 Posts
    10k Views
    A
    @Lays147 I do not have to use cmake, We just build vtk and qt and link to them in VS project. If it is linked but you get run-time error it means there is lack of run-time initialization ( related to system/driver specific needs), If you used CMAKE this would be handled buy cot it generate. Above given code provides initialization of some modules and is sufficient for me .
  • 0 Votes
    3 Posts
    3k Views
    F
    @SGaist Thank you! I'm sorry if i reply so late! Now i try to follow your advices. ;)