qml属性

记录一些用到的qml属性

Text{

 
 wrapMode: Text.WordWrap  //自动换行

}

----------

使用Shape画圆,Canvas渲染性能并不太好
 
 Shape {
        id: paiarc
        width: 200
        height: 150
        anchors.centerIn: parent
        ShapePath {
            strokeWidth: 1
            strokeColor: "black"
            startX: 50; startY: 60
            PathAngleArc {
                centerX: 50; centerY: 50
                radiusX: 10; radiusY: 10
                sweepAngle: 360
            }
        }
    }
 
 

猜你喜欢

转载自www.cnblogs.com/wang0535/p/11307561.html
QML