Hello.

I work on a project involving Qt which must be multi-platform, so I decided to
write here.

I need to implement a Lock menu which must "lock" all the opened windows in a mdi view
and they should not be moved any more and also to hide the min and max buttons if possible. I tried this:
Code:
void CDEWindow::Lock( bool bLock )
{
	QStyle &st = style();
	if(bLock)
	{
		clearWFlags(WStyle_MinMax);
		update();

But it seems not to work. Can anyone suggest another way to do this, if it is?

Also I have no idea how to make the windows non movable.