title: pause function while child window is displayed in Qt
body: <p>in Qt Creator I have a mainwindow and a QWidget as tool-window (setWindowFlags(Qt::tool)). When I call the tool window the user can change some settings. These changes then alter some data in the mainwindow.</p>
  
  <p>I create the widget, show it, then I want to update the data in mainwindow, but the function doesn't wait for the widget to close. So the update procedures after the show are imidiately executed and have no effect. When I show a QMessageBox the function waits for the user to close it.</p>
  
  <p>Is there a flag or something I can set for the QWidget so the function waits?</p>
  
  <pre><code>void userclicksonsettings(){
   settings = new Settings(this);  // Settings is a QWidget-class with ui
   settings-&gt;show();
   // function should wait till settings is closed
   // set up mainwindow with new values
  }
  </code></pre>
  
  <p>Thanks.</p>