• 4057阅读
  • 2回复

[提问]qml listview item 问题 [复制链接]

上一主题 下一主题
离线zhjx922
 

只看楼主 倒序阅读 楼主  发表于: 2013-12-19

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
                    }
                }
离线zhjx922

只看该作者 1楼 发表于: 2013-12-23
表示还没解决,水货一个。。。
离线nuanbing222

只看该作者 2楼 发表于: 2014-04-22
设置Item的height
        height: content.height
快速回复
限100 字节
 
上一个 下一个