Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // this is the child QMainWindow
  2. if (this->m_infoAreaFloating)
  3. {
  4. // this should give me a floating window besides the main window
  5. this->setWindowFlags(Qt::Desktop);
  6. this->show();
  7. }
  8. else
  9. {
  10. // make this compliant as QWidget
  11. this->setWindowFlags(this->windowFlags() & ~Qt::Window);
  12. }
  13.  
  14. setWindowFlags(m_infoAreaFloating ? Qt::Window : Qt::Widget);
  15. show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement