did you link all the required dlls?<br><br><div class="gmail_quote">On Wed, Jun 15, 2011 at 8:36 AM, algr <span dir="ltr">&lt;<a href="mailto:alexander.gryanik@gmail.com">alexander.gryanik@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi everyone,<br>
I&#39;m new to VTK and Qt. I can compile and run Qt and VTK applications but I<br>
need to integrate VTK into my Qt GUI. I tried to create an application using<br>
QVTKWidget but it crashes on<br>
QVTKWidget *myWidget = new QVTKWidget;<br>
with following message<br>
The program &#39;[6048] xxxxx.exe: Native&#39; has exited with code 1 (0x1).<br>
<br>
If I comment this line everything works fine.<br>
<br>
#include &lt;QMainWindow&gt;<br>
#include &lt;QWidget&gt;<br>
<br>
int main(int argc, char *argv[])<br>
{<br>
  QApplication app(argc, argv);<br>
<br>
  QMainWindow mainWindow;<br>
  mainWindow.setWindowTitle(&quot;My Widget&quot;);<br>
  mainWindow.setGeometry(100, 100, 500, 355);<br>
<br>
  QVTKWidget *myWidget = new QVTKWidget;<br>
<br>
  mainWindow.show();<br>
<br>
  return app.exec();<br>
}<br>
<br>
Any ideas?<br>
<br>
Regards, Alex<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/QVTKWidget-issues-tp4491051p4491051.html" target="_blank">http://vtk.1045678.n5.nabble.com/QVTKWidget-issues-tp4491051p4491051.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>