@Paulo_Carvalho Sorry for my late reply. Thank you for your suggestions and kindness. Finally, the program just runs without crash after some modification in .cxx files of VTK. But, There is another problem.
When I load the âbunny.pcdâ file, it can be displayed in QVTKOpenGLWidget without crash.However,I canât scroll(zoom in/out) or rotate the camera angle when the point clouds are displayed in real time. Itâs just been displayed at a fixed camera angle and, neither be rotated nor scrolled. I just use while loop and UpdatePointCloud to display. Is there anything that Iâve missed out??
while(!stop_bool)
{
pcl_viewer->updatePointCloud<pcl::PointXYZI>(pcl_pointcloud, ârslidarâ);
ui->openGLWidget->update();
renWin->Render();
}