Results 1 to 2 of 2

Thread: Can you remove the title bar, but keep the close/minimize/maximize buttons?

  1. #1
    Join Date
    Mar 2015
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Can you remove the title bar, but keep the close/minimize/maximize buttons?

    I want all of the extra vertical space as possible to use for an OpenGL render window. So I would like to remove the frame and title bar:
    Qt Code:
    1. window.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
    To copy to clipboard, switch view to plain text mode 
    .
    Is it possible to somehow keep the standard close/minimize/maximize buttons, maybe as widgets placed in the right corner of the screen? What's the best way to accomplish such a thing? Do I have to use push buttons?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can you remove the title bar, but keep the close/minimize/maximize buttons?

    Well, the standard buttons are part of the window decoration. If you turn in off, they are gone as well.
    You can of course add your own UI for these functions anywhere in your window and then just trigger the respective functions on your window instance

    Cheers,
    _

Similar Threads

  1. minimize, maximize and close buttons tooltips
    By kalster in forum Qt Programming
    Replies: 0
    Last Post: 30th October 2011, 07:40
  2. Dialog and minimize, maximize buttons
    By lotek in forum Newbie
    Replies: 10
    Last Post: 15th February 2011, 20:39
  3. Disable the minimize, maximize,close buttons
    By qtlinuxnewbie in forum Newbie
    Replies: 10
    Last Post: 25th February 2010, 10:18
  4. how to remove maximize minimize close
    By tsuibin in forum Qt Programming
    Replies: 8
    Last Post: 2nd April 2009, 18:28
  5. Replies: 1
    Last Post: 21st February 2009, 14:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.