EContainer 布局容器
示例与代码
布局容器
属性
属性说明取值与默认值
contentalias内容插槽;直接在组件内部声明 QML 子对象。
默认值
别名:layout.datacontentSizesize布局内容尺寸配置对象。
字段:width, height
默认值
Qt.size(0, 0)directionvar子区域的排列方向,默认根据区域类型自动判断。
null(自动判断)Qt.Horizontal / Qt.Vertical"horizontal" / "vertical"
默认值
nullenabledbool是否允许交互;false 时控件禁用。
默认值
trueheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeightvisiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidtheffectiveDirectionint只读布局容器根据配置及子项确定的实际方向。
Qt.HorizontalQt.Vertical
默认值
由运行时计算