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

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.

主站蜘蛛池模板: 山丹县| 大名县| 增城市| 克山县| 忻城县| 牡丹江市| 乐昌市| 博罗县| 开远市| 永靖县| 红原县| 汤阴县| 凤台县| 涪陵区| 海原县| 古浪县| 刚察县| 广南县| 科技| 贡觉县| 涿州市| 冷水江市| 邢台县| 肇州县| 沅江市| 石嘴山市| 巴林左旗| 永城市| 个旧市| 阿鲁科尔沁旗| 烟台市| 理塘县| 云龙县| 西宁市| 武定县| 庄河市| 阿鲁科尔沁旗| 牙克石市| 蒙自县| 潢川县| 搜索|