Re: Occurring vtkDebugLeaks even smartpointers are used
ran <[email protected]>
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers