// remove window frame
Qt::WindowFlags flags = windowFlags();
if (flags.testFlag(Qt::FramelessWindowHint))
return;
flags |= Qt::FramelessWindowHint;
setWindowFlags(flags);
Qt::WindowFlags flags = windowFlags();
if (flags.testFlag(Qt::FramelessWindowHint))
return;
flags |= Qt::FramelessWindowHint;
setWindowFlags(flags);
//show();
This code need to add each window which need to remove title bar.
No comments:
Post a Comment