Results 1 to 2 of 2

Thread: Best way to make list box / view same size as parent

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

    Default Best way to make list box / view same size as parent

    Hi,

    I have a QListWidget on a form, I was wondering what is the best way to resize this widget so it is always same size as its parent form, this best to do with layouts or catch the resize event?

    Regards,
    Steve

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Best way to make list box / view same size as parent

    You want to add the list widget in a layout and install the layout on the parent form. For more information, see Layout Classes
    J-P Nurmi

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

    steg90 (14th 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.