<div dir="ltr">Hi,<div><br></div><div>I have complied Qt-enabled VTK, and I can add QVTKWidget to my application by hard-coding without using Qt Designer, as follows: myQVTKWidget->GetRenderWindow()->AddRenderer(myVTKRenderer).<div>

<br></div><div>Now I am trying the following example to use QT Designer and adding VTKWidget and then promoting it to QVTKWidget: </div><div><br></div><div><a href="http://hxr99.blogspot.com/2013/03/qt-vtk-displaying-single-dicom-file.html">http://hxr99.blogspot.com/2013/03/qt-vtk-displaying-single-dicom-file.html</a><br>

</div><div><br></div><div>It appears that I can promote VTKWidget to QVTKWidget as I did not get any error message, however when I compile I am getting the following error: "class Ui::MainWindow' has no member named 'vtkRenderer' which is for the following line of my code: <span style="color:rgb(0,0,0)">imageViewer</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SetRenderWindow</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,0)">ui</span><span style="color:rgb(0,0,0)">-></span>vtkRenderer<span style="color:rgb(0,0,0)">-></span>GetRenderWindow<span style="color:rgb(0,0,0)">());</span></div>


<div><br></div><div>Would you advise how to resolve this?</div><div><br></div><div>Thanks</div><div>-S</div><div><br></div></div></div>