PDA

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



tallan
6th July 2015, 08:17
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:

window.setWindowFlags(Qt::Window | Qt::FramelessWindowHint); .
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?

anda_skoa
6th July 2015, 09:30
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,
_