Qt Custom closable windows
-
I looked at the QDecorations Example, but didn't appear to be what I was looking for. I was looking for a way to make custom windows closable, but able to move the windows around still, by this, I mean, completely removing the X, -, and Maximimize Button, I'm also thinking this isn't possible? If somebody has any idea what I'm referring too, and can point me in the right direction, it'd be appreciated, thanks, =).
-
I think it should be possible with the "Qt::WindowFlags":http://doc.trolltech.com/latest/qt.html#WindowType-enum passed to the widget. Read the docs to be sure though.
-
[quote author="Franzk" date="1314767977"]I think it should be possible with the "Qt::WindowFlags":http://doc.trolltech.com/latest/qt.html#WindowType-enum passed to the widget. Read the docs to be sure though.[/quote]
Thanks for the reply, =).
-
There is an "example":http://doc.trolltech.com/latest/widgets-windowflags.html ,about using the Window Flags.
-
But there are restirictions to the windows flags. Like if you want to have a system menu on windows, you (AFAIK) automatically get a close button.
AFAIK you can change that on windows by reimplementing WM_NCXXX messages in the winEvent function of a widget...