EPageHeader 页头
示例与代码
页头
属性
属性说明取值与默认值
bodyComponentComponent自定义页头正文的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullbreadcrumbComponentComponent自定义面包屑的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullcontentstring页头主要内容文字。
默认值
""contentComponentComponent自定义主体内容的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullenabledbool是否允许交互;false 时控件禁用。
默认值
trueextraalias内容插槽;直接在组件内部声明 QML 子对象。
默认值
别名:extraContent.dataheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeighticonComponentComponent自定义图标的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nulliconSourceint组件使用的图标。
EIcons.*
0(无图标)
默认值
EIcons.ARROW_LEFTshowBackbool显示返回按钮。
默认值
truetitlestring标题文字。
默认值
随当前语言变化titleComponentComponent自定义标题的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullvisiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidth信号
签名作用
back()点击返回按钮时触发,在此处理页面返回操作。