[vtkusers] QVTKWidget issues
clinton@elemtech.com
clinton at elemtech.com
Wed Jun 15 10:09:44 EDT 2011
Are you mixing debug and release builds of Qt? One can tell by looking at the output window in visual studio.
Clint
----- Reply message -----
From: "algr" <alexander.gryanik at gmail.com>
Date: Wed, Jun 15, 2011 6:36 am
Subject: [vtkusers] QVTKWidget issues
To: <vtkusers at vtk.org>
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.
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110615/0560ae35/attachment.htm>
More information about the vtkusers
mailing list