Results 1 to 2 of 2

Thread: Layouts and allowing view to stretch with main window

  1. #1
    Join Date
    May 2007
    Posts
    301
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    46
    Thanked 3 Times in 3 Posts

    Default Layouts and allowing view to stretch with main window

    Hi,

    I posted a similar question about making a view stretch as the main window is yesterday and was pointed in the direction of layouts. I've looked at them and still can't work out how to do this without having to write code myself to capture the resize event and change the size accordingly. Is there a way of just putting my widgets in a layout and when the user resizes the main form the widgets move accordingly?

    Kind regards,
    Steve

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Layouts and allowing view to stretch with main window

    Yes, that's the whole point of layouts If you use Designer, try this, it shows the basics (layouts are mentioned near the end):
    http://www.wysota.eu.org/tutorials/tut_designer1.avi

    Or you can just ask a specific question and we'll try to answer it.
    Last edited by wysota; 15th May 2007 at 11:35.

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

    steg90 (15th May 2007)

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.