Results 1 to 8 of 8

Thread: Is it possible to find a widget's Layout which add it?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Is it possible to find a widget's Layout which add it?

    I really doubt that you can do it. It it just not the business of widgets to know how and by whom they are layouted.

    There might be a dirty way. When you add a widget to a layout it gets reparented. You might want to check the parent.
    But I have no idea what happens when you have complicated layout hierachies.
    Last edited by Kumosan; 29th April 2010 at 10:56. Reason: updated contents

Similar Threads

  1. How to change a widget to other widget in layout?
    By Kevin Hoang in forum Qt Programming
    Replies: 2
    Last Post: 20th March 2010, 10:55
  2. Replies: 1
    Last Post: 4th September 2009, 09:58
  3. Layout (widget overlay)
    By whitefurrows in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2009, 23:54
  4. how to find a child widget?
    By TheRonin in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2006, 10:30
  5. Cannot find line or rectangle widget
    By Kapil in forum Newbie
    Replies: 3
    Last Post: 23rd February 2006, 11:01

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.