Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Center Text with letterSpacing

$
0
0
I try to center text with non-default letterSpacing: import QtQuick 2.2 import QtQuick.Window 2.1   Window {     visible: true     width: 360     height: 360       Text {         text: qsTr("Hello World")         anchors.centerIn: parent         font.pointSize: 14         font.letterSpacing: 20     } } but have no luck. Is there a proper way to do it?

Viewing all articles
Browse latest Browse all 4972

Trending Articles