How to hide titlebar of the QDialog window? [duplicate]
问题 This question already has answers here : QDialog remove title bar (3 answers) Closed last month . I show a dialog in my qt application on menu action click window is appearing perfectly but I want to hide its title bar as it is just a sub-window inside main window. I tried : this->setWindowFlags(Qt::Window |Qt::FramelessWindowHint); In dialog constructor: ui->setupUi(this); this->setWindowState (Qt::WindowActive); setWindowModality(Qt::ApplicationModal); setAttribute (Qt::WA_DeleteOnClose);