ECard 卡片
示例与代码
悬停阴影与标题、页脚插槽
卡片
属性
属性说明取值与默认值
contentalias内容插槽;直接在组件内部声明 QML 子对象。
默认值
别名:body.dataenabledbool是否允许交互;false 时控件禁用。
默认值
trueheaderstring卡片头部文字。
默认值
""headerDelegateComponent自定义头部内容或表头的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeightshadowstring卡片阴影的显示策略。
always
hover
never
默认值
继承 Provider,默认 "never"visiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidth