[vtkusers] issue with QVTKWidget
Sam Raby
rabysam28 at gmail.com
Wed Feb 12 09:45:44 EST 2014
I realized that even if I do not promote VTKWidget to QVTKWidget I will get
the same compilation error. Maybe the problem is that I can not properly
promote VTKWidget to QVTKWidget?
On Wed, Feb 12, 2014 at 8:03 AM, Sam Raby <rabysam28 at gmail.com> wrote:
> Hi,
>
> 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).
>
> Now I am trying the following example to use QT Designer and adding
> VTKWidget and then promoting it to QVTKWidget:
>
> http://hxr99.blogspot.com/2013/03/qt-vtk-displaying-single-dicom-file.html
>
> 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: imageViewer->SetRenderWindow(ui->vtkRenderer->
> GetRenderWindow());
>
> Would you advise how to resolve this?
>
> Thanks
> -S
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140212/fd4d5733/attachment.html>
More information about the vtkusers
mailing list