Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can we get back a window with frame in a framelesswindow?

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

    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?

    Pratik Agrawal

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pratik041
        wrote on last edited by
        #3

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

        Pratik Agrawal

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved