pro*_*cer 9 qt qml
我想设置一个元素的高度.它应该是最高子元素的高度.
是否有类似的东西:
Parent { height: max(child1.height, child2.height) }
或者像:
Parent { height: stretchToChildren }
ser*_*rgk 18
Math.max() 是可变的(采用任意多个参数).
Math.max()
根据实际布局,可能使用Item.childrenRect属性.
Item.childrenRect
归档时间:
12 年,4 月 前
查看次数:
8614 次
最近记录:
6 年 前