首页| 论坛| 消息

标题:qml listview item 问题
作者:zhjx922
日期:2013-12-19 13:03
内容:

delegate:
Item {
height: 30 //这个高度怎么通过Text的高度自动定义?
width: parent.width
Text {
id: content
anchors.fill: parent
anchors.margins: 5
color: '#eeeeee'
clip: true
wrapMode: Text.WordWrap
font.pixelSize: 12
text: title
}
&n ..


#1 [zhjx922 12-23 17:57]
表示还没解决,水货一个。。。
#2 [nuanbing222 04-22 16:29]
设置Item的height
height: content.height

回复 发表
主题 版块