Hi everyone, I also had this problem.
I found a easy solution here, sharing with you all.

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. Dialog w;
  5. w.setWindowFlags(Qt::Window); // add this.
  6. w.show();
  7.  
  8. return a.exec();
  9. }
To copy to clipboard, switch view to plain text mode 

Best,