[Solved]Overlap window background on the resize window
I have created the Hoops widget on the QFrame container. I am facing problem that whenever i resize the window, the window background overlap over the hoops widget.
i have used the following attribute but it wont work
setAttribute( Qt::WA_TranslucentBackground, true );
Please help me to resolve this issue.
Without a bit of code that helps reproduce your problem it will be difficult to help you.
HoopsWidget::HoopsWidget (QWidget* parent, const char* name)
: QWidget (parent, name)
, event_item_ (0)
, must_update_on_repaint (true)
setBackgroundMode (Qt::NoBackground); // avoid flicker
here Hoopswidget is class. after creating HoopsWidget object, I have set the graphics view using hoops API to draw the geometry. when i just resize the window the graphics view resized but window background overlap the graphics view.
I don't know Hoops but a quick search returned "this":http://docs.techsoft3d.com/visualize/3df/latest/HoopsQt/ProgrammingGuide_C.html might be a good start
I have found that continuously updaterequest(event no 77) event is going to fire for that widget.
so i just set setUpdatesEnabled(false) then the flickering problem goes off.