Results 1 to 4 of 4

Thread: Help needed for proper Layout mangment

  1. #1
    Join Date
    Feb 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Help needed for proper Layout mangment

    Hi All,
    I have recently started developing a chat application with Qt for Windows Desktop.

    I have a left ListWidget that needs to resize itself only vertically.
    and a right ListWidget that needs to resize both vertically and horizontally.

    I have attached the normal and the maximized, now they move to left side I want it to lay out according to MainWindow dimensions.

    please guide me on achieving this.
    Attached Images Attached Images

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Help needed for proper Layout mangment

    From your picture i guess you did not set a layout for the main-window (or you are not using layouts at all - in that case start using them, see the documentation: for designer and code).

  3. #3
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help needed for proper Layout mangment

    You need to use layouts - http://qt-project.org/doc/qt-4.8/layout.html
    Also you may want to set maximum/minimum width of the left ListWidget.

  4. The following user says thank you to lanz for this useful post:

    lightydo (27th February 2013)

  5. #4
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Cool Re: Help needed for proper Layout mangment

    Hey,
    I dint understand your problem. What about the right bottom lineedit? and what about the push button?
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

Similar Threads

  1. Help with memory mangment or class deconstraction
    By iNewLegend in forum Qt Programming
    Replies: 0
    Last Post: 30th May 2011, 19:36
  2. Proper way to use qmake and moc?
    By mossen in forum Newbie
    Replies: 1
    Last Post: 6th May 2011, 03:52
  3. Replies: 0
    Last Post: 12th December 2010, 06:09
  4. Replies: 0
    Last Post: 25th May 2009, 11:00
  5. Proper way to #include Qt?
    By pherthyl in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2006, 03:15

Tags for this Thread

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.