PDA

View Full Version : Double click resize window disable



MarkoSan
5th May 2008, 16:35
Hello again to all!

I have a main window in some application module which is fullscreen resized. Now, If I double click in blue bar in upper region of this window (on this bar there is also system menu), the window resizes. How do I disable that? This is windows only demand.

pherthyl
5th May 2008, 21:48
That's a window manager function which you don't control. However you could try experimenting with something like setFixedSize on the mainWindow to prevent the user from resizing the window.

MarkoSan
5th May 2008, 21:59
Is it possible somehow to "define" a rectangle inside windows where double click works?

jpn
13th May 2008, 11:35
What do you mean with "a rectangle where double click works"? Works what? Catch mouse double click events in the usual way and just handle them when they happen to be inside the area of interest.