import QtQuick 2.0 Rectangle { id : mainWindow width : 300; height : 200 property variant pps : 1.25 Rectangle { implicitWidth: 99*pps implicitHeight: 38*pps border.color: "black" border.width: 1*pps color: "green" width: textLabel.contentWidth + 32*pps Text { id: textLabel anchors { top: parent.top bottom: parent.bottom left: parent.left right: parent.right topMargin: 2*pps } text: "Play" color: "blue" font.pointSize: 16 renderType: Text.NativeRendering verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter } } }