Results 1 to 2 of 2

Thread: 2 Questions about layouts

  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default 2 Questions about layouts

    Hi all. I've got 2 questions about layouts: I have the layout system shown in the image that I have attached with this thread: In the main layout (white color) I've got three sublayouts (green, red and yellow). The layouts in black and grey are sublayouts of the green and red layouts. Well, in my program there's an option to hide the green or red layout in any moment. And here are my questions:
    1) Why when I try to hide for example the red layout, the space between the green and yellow layouts is greater than the spacing that I've defined for the main layout? And equally if I try to hide the green layout this space appears in the top of the red layout. Isn't it possible to completely hide a layout? I've tried it setting the margins and the spacing in the layouts to 0 but always appears the spaces. Anybody knows why?
    2) Is it a faster way to hide all the objects in a layout than calling for every object the hide or setVisible(false) functions?

    Thanks.
    Attached Images Attached Images
    Last edited by SkripT; 26th February 2006 at 11:53.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 2 Questions about layouts

    Quote Originally Posted by SkripT
    2) Is it a faster way to hide all the objects in a layout than calling for every object the hide or setVisible(false) functions?
    You can use QFrame or even QWidget to group those widgets.

  3. The following user says thank you to jacek for this useful post:

    SkripT (26th February 2006)

Similar Threads

  1. GraphicsItems and layouts
    By godmodder in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2008, 08:43
  2. Layouts
    By csvivek in forum Qt Tools
    Replies: 3
    Last Post: 7th May 2008, 07:22
  3. Memory management questions (im new to Qt)
    By scarvenger in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2007, 07:41
  4. Problems putting layouts inside groupbox
    By conexion2000 in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 10:01
  5. Qt related questions and thoughts about getting job
    By AlexKiriukha in forum General Discussion
    Replies: 4
    Last Post: 26th January 2006, 12:25

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.