----- RowLayout -----



https://doc.qt.io/qt-6.9/zh/qml-qtquick-layouts-rowlayout.html

 属性 
import QtQuick.Layouts
    
RowLayout {
    layoutDirection: enumeration  //布局方向
        layoutDirection: Qt.LeftToRight  //从左到右(默认)
        layoutDirection: Qt.RightToLeft  //从右到左
    spacing: real
        //单元格间距,默认:5
    uniformCellSizes: bool
        //强制所有单元格(非项目)具有统一的大小,默认:false
    
    Item {
        Layout.minimumWidth(Height): real
            //项目最小宽/高度,默认:项目隐式最小宽/高
        Layout.maximumWidth(Height): real
            //项目最大宽/高度,默认:项目隐式最大宽/高
        Layout.preferredWidth(Height): real
            //项目首选宽/高度,默认:-1
            //值为 -1 时,此属性会失效,布局将用 implicitWidth 代替
        Layout.fillWidth(Height): bool
            //项目尽可能宽/高,默认:项目隐式内置的尺寸策略
            //值为 false 时,项目的固定宽/高度为 首选宽/高度
    
        Layout.alignment: Qt.Alignment  //对齐方式
            Layout.alignment: Qt.AlignTop//顶部对齐
            Layout.alignment: Qt.AlignBottom//底部对齐
            Layout.alignment: Qt.AlignLeft//左对齐
            Layout.alignment: Qt.AlignRight//右对齐
            Layout.alignment: Qt.AlignHCenter  //水平居中
            Layout.alignment: Qt.AlignVCenter  //垂直居中
            Layout.alignment: Qt.AlignCenter  //水平、垂直居中
            Layout.alignment: Qt.AlignBaseline  //与基线对齐
    
        //margin
        Layout.margins: real  //默认:0
        Layout.topMargin: real  //默认使用 Layout.margins 值
        Layout.bottomMargin: real  //默认使用 Layout.margins 值
        Layout.leftMargin: real  //默认使用 Layout.margins 值
        Layout.rightMargin: real  //默认使用 Layout.margins 值
    
        Layout.horizontalStretchFactor: int
            //水平拉伸因子,默认项目具有相同大小
            //若第一个项目为 1 ,第二个项目为 2 ,则总空间为 3
            //默认:-1,即不使用拉伸因子
            //启用前,需设置 Layout.fillWidth 值为 true
        Layout.verticalStretchFactor: int
            //垂直拉伸因子,默认项目具有相同大小
            //若第一个项目为 1 ,第二个项目为 2 ,则总空间为 3
            //默认:-1,即不使用拉伸因子
            //启用前,需设置 Layout.fillHeight 值为 true
    }
}