How can we get back a window with frame in a framelesswindow?



  • 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?



  • Just clear the flag. Be aware that altering window flags automatically hides the window.
    @
    setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint);
    show();
    @



  • [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)@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.