Good day.
I am really new to QT development
I am currently opening a mdi chlld by the following means

Qt Code:
  1. web_view *child = new web_view;
  2. ui->mdi1->addSubWindow(child);
  3. //child->show();
  4. child->showMaximized();
To copy to clipboard, switch view to plain text mode 

Now the above works great but the problem im having is that every time i click the button it opens a new window (child). How would i put something that says

Qt Code:
  1. if (window == open ) //will nee to code to see if it is open
  2. {
  3. reload child //Code to reload the child.
  4. }
  5. else
  6. {
  7. web_view *child = new web_view;
  8. ui->mdi1->addSubWindow(child);
  9. child->showMaximized();
  10. }
To copy to clipboard, switch view to plain text mode 

Help would be greatly appriciated

Regards