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

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.

主站蜘蛛池模板: 太仓市| 龙江县| 鹤岗市| 长阳| 永平县| 湘乡市| 高淳县| 会宁县| 黔东| 迭部县| 衡水市| 云南省| 邵武市| 钟祥市| 聂荣县| 永年县| 潞城市| 霍城县| 昌黎县| 东至县| 沾化县| 隆安县| 巫山县| 天峨县| 威远县| 古蔺县| 阳西县| 灵川县| 广州市| 平潭县| 清徐县| 简阳市| 石河子市| 子长县| 台中县| 梅州市| 政和县| 嘉义县| 陆丰市| 贵溪市| 长丰县|