[vtkusers] QVTKWidget avoid transparent background when rendering

Clinton Stimpson clinton at elemtech.com
Fri Aug 19 12:00:42 EDT 2011

On Friday, August 19, 2011 02:50:06 am Doria David wrote:
> Some strange behaviors occurs especially on QVTKWidget: when I show a
> QVTKWidget with a 3D volume, for example, the widget are
> shown transparent, showing the contents of the windows that are behind,
> for example a WordPad window until it is completely rendered. How can I
> avoid this strange behaviors ? (Ideally a black background instead of
> showing the contents of the windows that are behind) Thank you.

Can you do QVTKWidget::show(), a Render() to clear the background, then add 
the volume and render afterwards?  The background is disabled for QVTKWidget 
to avoid a flickering issue.

Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC

More information about the vtkusers mailing list