[vtkusers] qvtkwidget glitch when switching dialogs

Trystan Louboutin tanstry at gmail.com
Tue Dec 9 09:26:40 EST 2014


Hi,

I am facing the same issue in a multiple-pages application in C++ / Qt, I
see the background of previous pages while the QVTKWidgets of the current
page are rendering...

I tried the tricks you suggest but nothing better.

Any precise information of how to fix this ?

Thanks.

2013-09-20 4:04 GMT+02:00 Alex Malyushytskyy <alexmalvtk at gmail.com>:

> Please reply to a mailing list.
>
> try to set *autoFillBackground
> <http://pyqt.sourceforge.net/Docs/PyQt4/qwidget.html#autoFillBackground>*
> flag for every widget in QStackWidget.
> and/or set setAttribute
>
> this->setAttribute(Qt::WA_NoBackground, false );
>
> As far as I understand QStackWidget or QVtkWidget does not repaint
> background and since painting of QVTKWidget is not  fast you see old
> background.
> There are might be more options ( Qt::WA_NoSystemBackground or WA_OpaquePaintEvent
> ) to check which might lead to the same behavior though.
>
> Alex
>
> On Thu, Sep 19, 2013 at 4:29 PM, Panayiotis Georgiou <
> ps.georgiou at gmail.com> wrote:
>
>> Thanks for your reply Alex. I ve tried what you have suggested but with
>> no success. I ve also tried a custom Qt stylesheet on each view. e.g.:
>>
>> (stylesheet.qss)
>>
>> QVTKWidget#view1{
>> background-color: black;
>> }
>>
>> But this did not work either.
>>
>> Any other possible solutions?
>>
>> Thanks.
>>
>>
>>
>> On Thu, Sep 19, 2013 at 11:25 PM, Alex Malyushytskyy <
>> alexmalvtk at gmail.com> wrote:
>>
>>> Try to set *autoFillBackground
>>> <http://pyqt.sourceforge.net/Docs/PyQt4/qwidget.html#autoFillBackground>*
>>> true to QStackedWidget.
>>>
>>> Alex
>>>
>>>
>>> On Thu, Sep 19, 2013 at 4:14 AM, Panayiotis Georgiou <
>>> ps.georgiou at gmail.com> wrote:
>>>
>>>> Dear fellow vtk developers,
>>>>
>>>> I am developing an application in qt which in some dialogs includes
>>>> some visualizations created in vtk.
>>>>
>>>> The qt application consists of a sequence of QDialogs stacked in a
>>>> QStackedWidget.
>>>>
>>>> The problem which I am trying to solve is, when switching back/forth to
>>>> dialogs including vtk visualizations (qvtkwidgets) until the visualization
>>>> is loaded I see in the background parts of previous dialogs.
>>>>
>>>> Is there a way to avoid this glitch? I have tried pre-loading the vtk
>>>> visualization before switching to the next dialog but it doesn't seem to
>>>> help much.
>>>>
>>>> It's hard to explain the problem in words so I ve created a video which
>>>> shows the glitch:
>>>> http://www.screencast.com/t/jAxTRKgS8
>>>>
>>>> In the video you can see the glitch in the four views pane dialog when
>>>> minimizing/maximizing the views (with a double click) or which back to the
>>>> previous dialog with the 3D mesh.
>>>>
>>>> Thanks a lot for your help.
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141209/6554cc52/attachment.html>


More information about the vtkusers mailing list