[vtkusers] QVTKWidget issues
algr
alexander.gryanik at gmail.com
Wed Jun 15 08:36:35 EDT 2011
Hi everyone,
I'm new to VTK and Qt. I can compile and run Qt and VTK applications but I
need to integrate VTK into my Qt GUI. I tried to create an application using
QVTKWidget but it crashes on
QVTKWidget *myWidget = new QVTKWidget;
with following message
The program '[6048] xxxxx.exe: Native' has exited with code 1 (0x1).
If I comment this line everything works fine.
#include <QMainWindow>
#include <QWidget>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMainWindow mainWindow;
mainWindow.setWindowTitle("My Widget");
mainWindow.setGeometry(100, 100, 500, 355);
QVTKWidget *myWidget = new QVTKWidget;
mainWindow.show();
return app.exec();
}
Any ideas?
Regards, Alex
--
View this message in context: http://vtk.1045678.n5.nabble.com/QVTKWidget-issues-tp4491051p4491051.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list