[Solved]Detect the QMainWindow is showing or not
-
I want to detect a QMainWindow is showing or not
@
QMainWindow window;
//.......
if(window.isShowing())
{
//..................
}
@Are there exist some function to do that?
If there are no such things, I would use a variable
to safe the state of the QMainWindow, and override
the closeEvent.Do you have another solution could make things become easier?
-
"QWidget::isVisible()":http://doc.qt.digia.com/qt/qwidget.html#visible-prop
-
Thanks a lot, this would make my codes easier to read.
-
"QWidget::isActiveWindow()":http://doc.qt.digia.com/qt/qwidget.html#isActiveWindow-prop