PDA

View Full Version : Help needed for proper Layout mangment



sikander243
27th February 2013, 11:01
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.

Zlatomir
27th February 2013, 11:17
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 (http://qt-project.org/doc/qt-4.8/designer-layouts.html) and code (http://qt-project.org/doc/qt-4.8/layout.html)).

lanz
27th February 2013, 11:24
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.

sonulohani
27th February 2013, 11:25
Hey,
I dint understand your problem. What about the right bottom lineedit? and what about the push button?