[vtkusers] QVTKWidget issues

Darshan Pai darshanpai at gmail.com
Wed Jun 15 09:58:43 EDT 2011


did you link all the required dlls?

On Wed, Jun 15, 2011 at 8:36 AM, algr <alexander.gryanik at gmail.com> wrote:

> 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/c65cc5b2/attachment.htm>


More information about the vtkusers mailing list