[vtkusers] Occurring vtkDebugLeaks even smartpointers are used
ran
kor1581 at gmail.com
Tue Dec 4 23:48:31 EST 2018
Thank you very much for the support,
My QVTKOpenGLWidget, vtkGenericOpenGLRenderWindow related code is like this
as per vtk tutorial
The app has a main Qt widget file
*/widget.h declaration file/*
QPointer<QHBoxLayout> m_loMain;
vtkNew <vtkGenericOpenGLRenderWindow> m_vtkRenderWindow1;
QPointer <QVTKOpenGLWidget> m_vtkWgtWin1;
vtkNew <vtkGenericOpenGLRenderWindow> m_vtkRenderWindow2;
QPointer <QVTKOpenGLWidget> m_vtkWgtWin2;
vtkNew <vtkGenericOpenGLRenderWindow> m_vtkRenderWindow3;
QPointer <QVTKOpenGLWidget> m_vtkWgtWin3;
*/and defined in widget.cpp constructor/*
QPointer<QHBoxLayout> m_loMain;
m_vtkWgtWin1 = new QVTKOpenGLWidget(this);
m_vtkWgtWin1->SetRenderWindow(m_vtkRenderWindow1);
m_loMain->addWidget(m_vtkWgtWin1);
m_vtkWgtWin2 = new QVTKOpenGLWidget(this);
m_vtkWgtWin2->SetRenderWindow(m_vtkRenderWindow2);
m_loMain->addWidget(m_vtkWgtWin2);
m_vtkWgtWin3 = new QVTKOpenGLWidget(this);
m_vtkWgtWin3>SetRenderWindow(m_vtkRenderWindow3);
m_loMain->addWidget(m_vtkWgtWin3);
*/and in app main class/*
// before initializing QApplication, set the default surface format.
QSurfaceFormat fmt = QVTKOpenGLWidget::defaultFormat();
fmt.setSamples(0);
QSurfaceFormat::setDefaultFormat(fmt);
have any issue in this code?
*/Also i tried with the format /*
QVTKOpenGLWidget::SetRenderWindow(vtkGenericOpenGLRenderWindow::Get());
but this also not solving the issue
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list