[vtkusers] vtkQtGraphicsViewRenderWindow
Doug Hoppes
dhoppes at mbfbioscience.com
Fri Mar 30 10:11:45 EDT 2012
Yeah, I saw the example. Is one method more efficient than the other one?
The current idea that I'm using is that, in my QT application, I have a VTKView class that is sub-classed from QGraphicsView. Inside this class, I create an instance of the QVTKWidget2 (just like the example).
I DO like the idea of just adding QVTKGraphicsItem to my scene. If the user resizes the window, wouldn't I need to resize the graphics Item (so that it fully takes up my window)?
-----Original Message-----
From: Clinton Stimpson [mailto:clinton at elemtech.com]
Sent: Friday, March 30, 2012 10:06 AM
To: vtkusers at vtk.org
Cc: Doug Hoppes
Subject: Re: [vtkusers] vtkQtGraphicsViewRenderWindow
You can also have a look at the code in VTK/Examples/GUI/Qt/GraphicsView.
It uses QVTKWidget2 instead of QVTKWidget as the viewport widget in a QGraphicsView.
There is also a QVTKGraphicsItem class if you want a VTK window as an item in the QGraphicsView.
On Friday, March 30, 2012 07:30:37 am Doug Hoppes wrote:
> Forgot to mention:
>
>
> In my current application, I already use the QVTKWidget to show my VTK
> window in QT. That works great. However, I need to have the VTK
> window inside of a QGraphicsView so that I can have my QTGraphicItems
> (overlays) show over my VTK window.
>
>
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf Of Doug Hoppes Sent: Friday, March 30, 2012 9:07 AM
> To: vtkusers at vtk.org
> Subject: [vtkusers] vtkQtGraphicsViewRenderWindow
>
> I just downloaded the 10.0.0RC1. Is this class not available? I saw
> some earlier postings about using the VTK window inside of the QGraphicsView.
>
> I also saw some postings for using the OpenGL/QVTKWidget2. Should I
> be using that class, instead?
>
> Dougie
--
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
More information about the vtkusers
mailing list