PDA

View Full Version : how to make panel and List View size automatically change with windows



richardander
23rd November 2011, 01:18
Hi,

I have following question to ask:

There is a panel in main window. The panel is with fixed width and 5 pixel away from the bottom of main window. Main windows is adjustable.

- When window size is changed by mouse, how to make the panel height to change with window automaticaly?


If panel contains one list view. how to make the list view height change automatically when panel is changed?

Thank you!

ChrisW67
23rd November 2011, 04:41
Use the Qt Layout system for which there are some specific examples, and almost every other Qt example uses a layout.