<div dir="ltr">I realized that even if I do not promote VTKWidget to QVTKWidget I will get the same compilation error. <font face="arial, sans-serif">Maybe the problem is that I can not properly promote </font>VTKWidget <font face="arial, sans-serif">to </font>QVTKWidget?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 8:03 AM, Sam Raby <span dir="ltr"><<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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" target="_blank">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>imageViewer</span><span style>-></span><span style="font-style:italic">SetRenderWindow</span><span style>(</span><span style="color:rgb(128,0,0)">ui</span><span style>-></span>vtkRenderer<span style>-></span>GetRenderWindow<span style>());</span></div>
<div><br></div><div>Would you advise how to resolve this?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>-S</div><div><br></div></font></span></div></div>
</blockquote></div><br></div>