how to minimize the child window
-
I have a QMainwindow and QDialog that comes on the top of Maninwindow
When I minimize the QMainwindow , my QDialog does not get minimized , COuld you please let me know the reason why?
-
Hi,
Just an educated guess: because they are two independent widgets and it would not make sense that if you minimise any of your widgets all them are.
-
how to solve this problem
-
how to solve this problem
@Qt-Enthusiast you could read documentation: http://doc.qt.io/qt-5/qwidget.html#hide
-
@Qt-Enthusiast you could read documentation: http://doc.qt.io/qt-5/qwidget.html#hide
@jsulm said in how to minimize the child window:
you could read documentation
nah, this couldn't be it, could it?
-
is it related to Parent Child relation
-
is it related to Parent Child relation
@Qt-Enthusiast said in how to minimize the child window:
is it related to Parent Child relation
No it isn't - why should it? @SGaist already pointed out that hiding one window should not automatically hide another one. You can use this hide() method to hide the dialog if you want.