title: Closing new nonchild window in Qt
body: <p>i'm trying to make 2 windows. 2nd should be called in 1st. I don't connect them child->parent.
  But when i called 2nd window and closed it 1st window closed too. What should i do?
  Both windows are inhereted from QWidget.
  C++ and Qt</p>
  
  <hr>
  
  <p>Sorry for my poor describe.
  I have a main window. Class inherited from QMainWindow. That i created 2nd window. Class inherited from QWidget.
  In first (main window) i'm creating and calling 2nd window</p>
  
  <pre><code>ConfigWindow *ConfWindow = new ConfigWindow();
  ConfWindow-&gt;show();
  </code></pre>
  
  <p>Without giving link to parent. Everything works fine, but when i close 2nd window (config-window) my main window is closing too. I needn't in this. What should i do to block closing main window after config-window closing.</p>
  
  <h2>Hope describe a little better.</h2>
  
  <p>My first window has this flags:</p>
  
  <pre><code>this-&gt;setWindowFlags(Qt::Tool | Qt::FramelessWindowHint);
  </code></pre>
  
  <p>Without them everything is fine. Could i change something if i need that flags in my window?</p>