Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
就像QtCreator 示例中的ContactList一样 如果有一个 元素是Text 而且这个Text的wrapMode 是WordWrap
那么第一次显示的时候就会出现 QML ItemDelegate: Binding loop detected for property "implicitHeight" 这种情况应该怎么解决 呢 尝试过使用lineCount * lineheight 设置固定高度,但是好像 不生效
自适应高度需要在Delegate做到父控件根据子控件的大小来改变大小。一个有用的属性是 Item::childrenRect。 Qt Quick Controls 2里面的控件布置得都挺好的,因为都继承Control这个类。
Item::childrenRect
Control