[vtkusers] QVTKWidget initialize problem

北京朱工 1034818245 at qq.com
Sat May 14 22:13:18 EDT 2011


QVTKWidget initialize problem
 
(1)Environment:
 
QtSDK 1.1 ( Qt 4.7.3, Qt Creator 2.1.0)
 
VTK 5.6.1
 
CMake 2.8.4
 
minGW 4.4
 
 
 
(2)Directory
 
E:\QtSDK
 
E:\VTK\VTK\bin
 
E:\VTK\VTK\include
 
E:\VTK\VTK\lib
 
E:\VTK\VTK\plugins
 
E:\CMake 2.8
 
E:\QtSDK\mingw\bin
 
 
 
(3)Example GraphicsView
 
Successfully build, and run GraphicsView which include QVTKWidget.
 
 
 
(4)in my own Qt application in debug
 
#include “QVTKWidget.h”
 
QVTKWidget* widget = new QVTKWidget();
 
Build is OK.
 
When run at QVTKWidget* widget = new QVTKWidget() , pop up a dialog as follows:
 
Title as “Microsoft Visual C++ Runtime Library”
 
Content as “This application has requested the Runtime to terminate it in an unusual way. Please contact the application’s support team for more information.”
 
Click “OK” and something show in the application export box as follows:
 
User/local/debug/myapplication.exe start…
 
Invalid parameter passed to C runtime function.
 
Invalid parameter passed to C runtime function.
 
User/local/debug/myapplication.exe exit, code: 3
 
 
 
(5)question
 
I don’t know why,
 
who can help me to solve this problem, 
 
thanks in advanced.
 
 
 
2011-05-15
 
Beijing, China
 
Mr. Zhu Xiaodi
 
1034818245 at qq.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110515/55796c2f/attachment.htm>


More information about the vtkusers mailing list