EParallaxView 视差滚动
示例与代码
视差滚动
属性
属性说明取值与默认值
backgroundComponentalias自定义视差背景的 Component 插槽;null 使用默认内容。
默认值
别名:backgroundLoader.sourceComponentcontentalias内容插槽;直接在组件内部声明 QML 子对象。
默认值
别名:column.dataenabledbool是否允许交互;false 时控件禁用。
默认值
trueflickablealias提供滚动位置的 Flickable 对象。
默认值
别名:flickableheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeightspeedreal视差背景相对滚动内容的移动比例。
默认值
0.35visiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidth