Results 1 to 1 of 1

Thread: QGraphicsLayout and QGraphicsWidget question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QGraphicsLayout and QGraphicsWidget question

    Hi,

    I have a root QGraphicsWidget with a QGraphicsGirdLayout, managing 4 layout items, as shown in the attachment.

    One of the layout item (bottom right item) is another QGraphicsWidget with its own QGraphicsGirdLayout. Now I need to resize one of its items (marked with "Resizable QGraphicsWidget in the attachment) by using resize().

    How do I let parent layout to automatically adjust its size to fit the child size? I call parent->adjustSize, but it doesn't work.

    Thanks.
    Attached Images Attached Images

Similar Threads

  1. Issue in placing the QGraphicsItems into QGraphicsLayout
    By aditya.kaole in forum Qt Programming
    Replies: 4
    Last Post: 9th September 2010, 07:33
  2. QGraphicsLayout: Problems adding QLabel
    By SneakyPeterson in forum Newbie
    Replies: 1
    Last Post: 1st July 2010, 12:31
  3. Replies: 6
    Last Post: 16th February 2010, 18:21
  4. QGraphicsLayout::geometry()
    By isutruk in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 15:43
  5. Extending QGraphicsLayout
    By Darkman in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2009, 12: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
  •  
Qt is a trademark of The Qt Company.