Results 1 to 1 of 1

Thread: QMdiArea with Gridlayout

  1. #1
    Join Date
    Jul 2009
    Posts
    42
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QMdiArea with Gridlayout

    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
    Last edited by ericV; 14th September 2009 at 15:41.

Similar Threads

  1. Weird behaviour with QMdiSubWindows in a QMdiArea?
    By qt_noob in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2009, 16:48
  2. QX11EmbedContainer into QMdiArea
    By peppino in forum Qt Programming
    Replies: 0
    Last Post: 25th September 2008, 17:12
  3. Weird behavior when readding a window to a QMdiArea
    By seand in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2008, 02:14
  4. Disable margin when using QMdiArea
    By vql in forum Qt Programming
    Replies: 1
    Last Post: 10th April 2008, 16:07
  5. QMdiArea unwanted actvation
    By fullmetalcoder in forum Qt Programming
    Replies: 7
    Last Post: 12th November 2007, 07:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.