title: in Qt, How do I make a window be the current window?
body: <p>My QT app has multiple windows and sometimes, even though the windows are already open but burried under other windows, the user will select an option to open one from the mainwindow menubar in which case I want to simply bring it up and make it the current one.  Now using QWidget->raise makes this window go on top of all other windows but it doesnt select it and that is what I need to do.   I tried QWidget->setFocus but that doesnt do anything.   In the mean time I am using a combination of QWidget->close followed by QWidget->show but I would like to know if there is a command to use with ->raise. </p>
  
  <p>I tried:</p>
  
  <pre><code>        pMission-&gt;raise();
          pMission-&gt;setFocus(Qt::ActiveWindowFocusReason);
  </code></pre>
  
  <p>but it didnt work so i used:</p>
  
  <pre><code>        pMission-&gt;close();
          pMission-&gt;show();
  </code></pre>