Hi

I know this should be possible but after searching for an answer I am still without one. Basically, I have a QMdiArea with a bunch of windows in it. I want to add a custom button (next to the minimize, maximize and close buttons) in the title bar of QMdiSubWindow that allows the user to release the window from the QMdiArea so that it can be shown as a normal widget (almost like undocking a dock widget). When the user click on the buttom again, it should be docked inside the QMdiArea again. I can think of ways to take care of releasing and docking the window. I just want to add a button to the title bar.

I've looked at Qt::WindowFlags but I didn't see anything that looks like what I need.

How can I do this?

Thanks for any inputs.
Jaco