官术网_书友最值得收藏!

How it works...

This example focuses more on the layout system of Qt. Qt's layout system allows our application GUI to automatically arrange itself within the given space by arranging the children objects of each widget. The spacer items used in the preceding example help to push the widgets contained in a layout outward to create spacing along the width of the spacer item.

To locate a widget to the middle of the layout, put two spacer items to the layout: one on the left side of the widget and one on the right side of the widget. The widget will then be pushed to the middle of the layout by the two spacers.

主站蜘蛛池模板: 桃源县| 巢湖市| 渭源县| 五莲县| 横山县| 玉门市| 延川县| 绥阳县| 宁明县| 鹿邑县| 颍上县| 宜城市| 金山区| 龙州县| 山西省| 集贤县| 中卫市| 江门市| 莱芜市| 宁波市| 长顺县| 隆子县| 同江市| 响水县| 安顺市| 澄迈县| 肇庆市| 枣阳市| 满洲里市| 南昌市| 侯马市| 贡山| 临泽县| 西贡区| 大荔县| 湖南省| 淄博市| 鹤壁市| 新巴尔虎右旗| 班戈县| 喀喇|