int main(int argc, char* argv)
std::string inputFilename ="path of dicomm images/xr_hands.dcm";
// Read all the DICOM files in the specified directory.
vtkSmartPointer<vtkDICOMImageReader> reader =
@alex_malyu I found the problem. Im use the class QVTKWidget2 where the return of the GetRenderView is different. Now i change to QVTKWidget and what you said make coherence to me.
vtkWidget is just the name of the class that i make. dont cate.
I do not have to use cmake,
We just build vtk and qt and link to them in VS project.
If it is linked but you get run-time error it means there is lack of run-time initialization ( related to system/driver specific needs),
If you used CMAKE this would be handled buy cot it generate.
Above given code provides initialization of some modules and is sufficient for me .