How can we get back a window with frame in a framelesswindow?
-
wrote on 20 Mar 2012, 05:52 last edited by
When i am setting a window flag
@Qt::FramelessWindowhint@
i am getting a frame less window but suppose i want to get the window frame again when some button is clicked. How i can get that?
Is their any flag to get the window frame again? -
wrote on 20 Mar 2012, 07:38 last edited by
Just clear the flag. Be aware that altering window flags automatically hides the window.
@
setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint);
show();
@ -
wrote on 20 Mar 2012, 09:11 last edited by
[quote author="Lukas Geyer" date="1332229127"]Just clear the flag. Be aware that altering window flags automatically hides the window.
setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint);
show();
[/quote]thanks. I have tried when i was resetting the window flag my window was disappearing because i was not using the show() function. I have got another way of showing the frame of window by using
@setWindowFlags(Qt::WindowTitleHint)@
3/3