我需要两个表格,每个表格都去掉空白区域,于是使用plotArea属性设置表格绘图区域,但是很奇怪的是,第一个表格始终不能填满父窗口,如下图:
代码如下:
ColumnLayout {
id: mainColumn
x: 10
width: parent.width-10
height: 205
spacing: 0
onWidthChanged:{
console.log(mainColumn.width)
}
RowLayout{
id:afRow
Layout.margins: 0
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: parent.height*1/3
Layout.preferredWidth: parent.width
onWidthChanged:{