[vtkusers] QVtkWidgets in a QGraphicsView (QGraphicsScene)

Clinton Stimpson clinton at elemtech.com
Tue Mar 17 10:04:58 EDT 2009


Yes, you need the CVS version of VTK to run that example.

Clint

J.S.Wijnhout at lumc.nl wrote:
> Hi,
>
>   
>> There is now an example in VTK/Examples/GUI/Qt/GraphicsView you might be interested in.
>>     
>
> Sounds like an interesting example!
>
>   
>> Contributions to improve it are welcome. 
>>     
>
> It can't seem to get it to work properly (using Qt 4.4.3 and VT 5.2.0). When I run the example the standard vtkRenderWindow is displayed but the Qt widget doesn't show. Also I get many errors on the console (see at the end of this message). Should I use the CVS version of VTK?
>
> Best,
> Jeroen
>
> QPainter::begin: Paint device returned engine == 0, type: 1
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::setClipRegion: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::save: Painter not active
> QPainter::save: Painter not active
> QPainter::setFont: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::restore: Unbalanced save/restore
> QPainter::renderHints: Painter must be active to set rendering hints
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QWidget::render: Cannot render with an inactive painter
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::end: Painter not active, aborted
> QPainter::begin: Paint device returned engine == 0, type: 1
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::setClipRegion: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::save: Painter not active
> QPainter::save: Painter not active
> QPainter::setFont: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::restore: Unbalanced save/restore
> QPainter::renderHints: Painter must be active to set rendering hints
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QWidget::render: Cannot render with an inactive painter
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::end: Painter not active, aborted
> QPainter::begin: Paint device returned engine == 0, type: 1
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::setWorldTransform: Painter not active
> QPainter::save: Painter not active
> QPainter::setClipRegion: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::save: Painter not active
> QPainter::save: Painter not active
> QPainter::setFont: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::restore: Unbalanced save/restore
> QPainter::renderHints: Painter must be active to set rendering hints
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QWidget::render: Cannot render with an inactive painter
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::restore: Unbalanced save/restore
> QPainter::save: Painter not active
> QPainter::restore: Unbalanced save/restore
> QPainter::end: Painter not active, aborted
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   





More information about the vtkusers mailing list