Results 1 to 2 of 2

Thread: Layouts and allowing view to stretch with main window

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

    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,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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 10: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.