I think I am asking for too much but I would like to have a rounded dialog that keeps its titlebar. I saw the great code in

http://www.qtcentre.org/forum/f-qt-p...ners-3205.html

which gives me a nice rounded dialog but I see that I lose the titlebar. I create it very simply:

in RoundedTest.h:
Qt Code:
  1. RoundedTest(QWidget *parent = 0, Qt::WFlags flags = 0);
To copy to clipboard, switch view to plain text mode 

in RoundedTest.cpp:
Qt Code:
  1. RoundedTest::RoundedTest(QWidget *parent, Qt::WFlags flags)
  2. : QDialog(parent, flags)
  3. {
  4. setupUi(this);
  5. }
To copy to clipboard, switch view to plain text mode 

and created with:
Qt Code:
  1. RoundedTest w;
To copy to clipboard, switch view to plain text mode 
I tried forcing the title bar by passing in Qt::Window or Qt:: Dialog as the flag but that didn't make a difference. I think that I am going to need to make my own close/minimize button and also interpret mouse events to do the move but if I can the dialog do it for me, that would be better.