标题:qml listview实现简单树模型,listview的滑动条出现问题
作者:598316507
日期:2015-07-29 18:24
内容:
//代码如下
import QtQuick 1.1
Rectangle {
width: 800
height: 480
color: "black"
property int _totalHeight: 0
property int _currentIndex: -1
property int _storeY
Rectangle {
width: 220
height: 300
anchors.centerIn: parent
color: "blue"
clip: true
Item {
id: item
width: 200
height: 300
ListView {
id: listview
anchors.fill: parent
model: nestedModel
delegate: categoryDelegate
clip: true
onContentHeightChanged: {
_totalHeight = getViewHeight();
&nbs ..