PDA

View Full Version : QMdiArea with Gridlayout



ericV
14th September 2009, 12:26
Hi,

I am working on a project in which i need a "Main-window" which can contain different Widgets, these have to be movable, but snap into a fixed Grid.
The grid cells need to have a fixed size but allow spanning multiple cells for larger Widgets.

(All widgets will have sizes that will fit exactly into one or more cells)

I was thinking on using an MDI area (this would allow moving of widgets) and setting a gridLayout on it.

Is there is a way to set a fixed size for cells in a gridlayout? Or do I need to handle the sizes on the widgets directly?

Can I calculate which cell is under the mouse when the mouse release occurs?

And is there a way to "highlight" the cell under the mouse while in mousemoveevent?

Thanks

Eric