当前位置: 代码迷 >> QT开发 >> QML Listview 怎么获取对应的Column 数据
  详细解决方案

QML Listview 怎么获取对应的Column 数据

热度:971   发布时间:2016-04-25 04:29:30.0
QML Listview 如何获取对应的Column 数据
JScript code
import QtQuick 1.0Item {    id: pyinlist    width: 633; height: 62    Component{        id: contactDelegate        Chinese_button{            width: 50; height: 50            content1: modelData;            [color=#FF0000]            content2: ListView.column.toString();//我想获取对于的Column 的数据 如何实现?            [/color]        }    }    Component{        id:hightlight        Rectangle{color: "lightsteelblue"; radius: 5}    }    ListView{        x: 0        anchors.fill: parent        y: 0        opacity: 1        anchors.bottomMargin: 0        anchors.leftMargin: 0        anchors.rightMargin: 0        anchors.topMargin: 0        model: m_pyin        orientation : ListView.Horizontal;        delegate: contactDelegate        clip: true    }}

我想获取对于的Column 的数据 如何实现?
我的结贴是有保障的,大神出来教教吧

------解决方案--------------------
楼业啊 你真是太好了
  相关解决方案