QT_QML interface design Row and Column layout

 
 
 
 
Column is used in a similar way to Row. The following is an example of Column:
Column{
        x: label_poseParamValue.x + label_poseParamValue.width + 10
        y: label_poseParamValue.y
        //width: 30 //--No need to specify, the final length is determined by the size and spacing value of each internal entity.
        //height:30 //--No need to specify
        spacing:5
		
	Label {
            id: label_poseParam1
            //x: 0 //--no need to specify
            //y: 4//--no need to specify
            width: 40
            height: 30
            text: qsTr("θ1")+qml_transor.emptyStringForReflash
            font.pointSize: 13
        }
	Label {
            id: label_poseParam1
            //x: 0 //--no need to specify
            //y: 4//--no need to specify
            width: 40
            height: 30
            text: qsTr("θ2")+qml_transor.emptyStringForReflash
            font.pointSize: 13
        }
}


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325726063&siteId=291194637