I have created two Main windows. How to know whether 2nd window is open in QT?
QMainWindow *window1 = new QMainWindow();
QMainWindow *window2 = new QMainWindow();
Now I have to find whther window2 is already opened in my one instance. How to know it
You can use the visible property:
if (window2->isVisible()) {
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With