QT_QML 界面设计Row和Column布局

 
 
 
 
Column与Row的使用方式类似,下面以Column为例子:
Column{
        x: label_poseParamValue.x + label_poseParamValue.width + 10
        y: label_poseParamValue.y
        //width: 30  //--不需要指定,最终的长度由内部的各个实体的尺寸以及spacing值确定。
        //height:30  //--不需要指定
        spacing:5
		
	Label {
            id: label_poseParam1
            //x: 0 //--不需要指定
            //y: 4//--不需要指定
            width: 40
            height: 30
            text: qsTr("θ1")+qml_transor.emptyStringForReflash
            font.pointSize: 13
        }
	Label {
            id: label_poseParam1
            //x: 0 //--不需要指定
            //y: 4//--不需要指定
            width: 40
            height: 30
            text: qsTr("θ2")+qml_transor.emptyStringForReflash
            font.pointSize: 13
        }
}


猜你喜欢

转载自blog.csdn.net/qq_35865125/article/details/80092590