PDA

View Full Version : Showing QMainWindow Title bar



kavinsiva
9th May 2011, 14:31
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);

"Showing the title bar"

Qt::WindowFlags flags=windowFlags();
flags^=Qt::WindowMinimizeButtonHint;
setWindowFlags(flags);

But hiding works fine for me ,show make the application crashes

Regards
SivaKumar.N

high_flyer
10th May 2011, 09:55
on which line of code exactly does the code crash?
Run it in a debugger to see.