title: Connecting QDialog to QMainWindow
body: <p>I have created a QMainWindow using QT Designer. I have components that have signals slots. I've made some non-gui components QObjects so I can also use the signal/slot mechanism.</p>
  
  <p>My next step was to add a modeless dialog. I do not want the dialog to block the main window. I would like the dialog to remain active(somewhere visible to the user or in the background) until the user clicks to close it. I created a modeless QDialog object with designer. The dialog pops up as needed. It keeps the information from the previous session in the text box as well. It's just a filename. </p>
  
  <p>However, when I started to connect the QDialog to the QMainWindow, the signal/slot mechanism does not appear to work. </p>
  
  <p>This is my code:</p>
  
  <pre><code>//In the .h file declared as member of the QMainWindow
  ScriptDialog *theScriptDialog;
  
  //In the .cpp file, the constructor of QMainWindow
  theScriptDialog = new ScriptDialog(this);
  
  QObject::connect(theScriptDialog, SIGNAL(notifyStartScript(QString)), SLOT   (startScripting(QString)));
  </code></pre>
  
  <p>Maybe I am barking up the wrong tree. Is there a better way to create a pop up window like this?</p>