qml 自定义滑动条(官方example)
来源:互联网 发布:淘宝信用借贷逾期 编辑:程序博客网 时间:2024/06/06 15:04
Rectangle { id: frame clip: true width: 160 height: 160 border.color: "black" anchors.centerIn: parent Text { id: content text: "ABC" font.pixelSize: 169 MouseArea { id: mouseArea drag.target: content drag.minimumX: frame.width - width drag.minimumY: frame.height - height drag.maximumX: 0 drag.maximumY: 0 anchors.fill: content } } ScrollIndicator { id: verticalIndicator active: mouseArea.pressed orientation: Qt.Vertical size: frame.height / content.height position: -content.y / content.height anchors { top: parent.top; right: parent.right; bottom: parent.bottom } } ScrollIndicator { id: horizontalIndicator active: mouseArea.pressed orientation: Qt.Horizontal size: frame.width / content.width position: -content.x / content.width anchors { left: parent.left; right: parent.right; bottom: parent.bottom } } }
阅读全文
0 0
- qml 自定义滑动条(官方example)
- 自定义qml滑动条Slider
- QML中自制滑动条
- ViewPager自定义滑动条
- Android自定义SeekBar滑动条
- 自定义 弧形滑动条 CricleScrollView
- QML Camera 摄像头拍照(带滑动条设置焦距)
- Android pagerSlidingTab自定义滑动条(indicator)宽度
- Qt5官方demo解析集21——Extending QML - Adding Types Example
- Qt5官方demo解析集22——Extending QML - Object and List Property Types Example
- Qt5官方demo解析集23——Extending QML - Inheritance and Coercion Example
- Qt5官方demo解析集24——Extending QML - Default Property Example
- Qt5官方demo解析集25——Extending QML - Methods Example
- Qt5官方demo解析集26——Extending QML - Grouped Properties Example
- Qt5官方demo解析集27——Extending QML - Attached Properties Example
- Qt5官方demo解析集28——Extending QML - Signal Support Example
- Qt5官方demo解析集29——Extending QML - Property Value Source Example
- Qt5官方demo解析集30——Extending QML - Binding Example
- Codeforces #423-Div. 2-C. String Reconstruction
- Codeforces Round #423(Div.2)
- android直播app礼物连击动画效果
- [高频] 五. 如何高效实现搜索类题目
- AndroidStudio与Eclipse的安装建议
- qml 自定义滑动条(官方example)
- 2017年7月8日休斯敦清华校友群主讲:API经济
- ArrayList 与 List
- 《MySQL技术内幕》编写C程序示例代码勘误
- Matlab 以及相关知识 范数 Norm
- PHP 定时器实现 timer 每隔几秒运行一次
- python学习笔记---python安装pip,并通过pip安装bs4
- Jquery SerializeObject - 将form表单转化成Javascript object
- 前端开发神一样的工具chrome调试技巧