How is proper way to set qwidget visible inside other widget.
-
How is proper way to set qwidget from seperate ui designer file to inside main widget without creating window borders?
Would it be needed to call show(); , set geomery and set window without borders or there are easyer ways to do same?How to trigger close of this widget if mouse hovers away from it?
-
How is proper way to set qwidget from seperate ui designer file to inside main widget without creating window borders?
Would it be needed to call show(); , set geomery and set window without borders or there are easyer ways to do same?How to trigger close of this widget if mouse hovers away from it?
@Q139 Window borders? Window borders are only shown for windows, not for widgets which are embedded in other widgets. Just create an instance of that widget, pass the parent widget as parent to the constructor and call show().
-
Thanks , it worked via setParent(this);
What classs to use to implement it to close it if mouse hovers away also?@Q139 If you just want to hide use http://doc.qt.io/qt-5/qwidget.html#hide
See http://doc.qt.io/qt-5/qwidget.html#leaveEvent for closing when mouse leaves the widget.