[Solved]Overlap window background on the resize window
-
Hi ,
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 worksetAttribute( Qt::WA_TranslucentBackground, true );
setAttribute(Qt::WA_NoSystemBackground, true);
Please help me to resolve this issue. -
Hi,
Without a bit of code that helps reproduce your problem it will be difficult to help you.
-
Hi ,
HoopsWidget::HoopsWidget (QWidget* parent, const char* name)
: QWidget (parent, name)
, event_item_ (0)
, must_update_on_repaint (true)
{
setFocusPolicy (Qt::ClickFocus);
setMouseTracking (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