Hi,
in my application i need to show the title bar after some time i need to hide the title bar for that i am using following code
"HIding the title bar"
this->setWindowFlags(Qt::MSWindowsFixedSizeDialogHint);
this->setWindowFlags(Qt::CustomizeWindowHint);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setWindowFlags(Qt::MSWindowsFixedSizeDialogHint);
this->setWindowFlags(Qt::CustomizeWindowHint);
this->setWindowFlags(Qt::FramelessWindowHint);
To copy to clipboard, switch view to plain text mode
"Showing the title bar"
Qt::WindowFlags flags=windowFlags();
flags^=Qt::WindowMinimizeButtonHint;
setWindowFlags(flags);
Qt::WindowFlags flags=windowFlags();
flags^=Qt::WindowMinimizeButtonHint;
setWindowFlags(flags);
To copy to clipboard, switch view to plain text mode
But hiding works fine for me ,show make the application crashes
Regards
SivaKumar.N
Bookmarks