import QtQuick 2.5
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
ApplicationWindow {
visible: true
width: 500
height: 500
maximumWidth: 500
maximumHeight: 500
RowLayout {
width: parent.width
height: 100
anchors.verticalCenter: parent.verticalCenter
Text {
id: a
text: "Normal text"
fontSizeMode: Text.Fit
font.pixelSize: 100
verticalAlignment: Text.AlignBottom
Layout.preferredWidth: parent.width / 2
Layout.fillHeight: true
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: "black"
}
}
Text {
id: b
text: "More text"
verticalAlignment: Text.AlignBottom
minimumPixelSize: 51
font.pixelSize: a.font.pixelSize
Layout.fillWidth: true
Layout.fillHeight: true
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: "black"
}
}
Text {
id: c
text: "Even more text"
verticalAlignment: Text.AlignBottom
minimumPixelSize: 51
fontSizeMode: Text.Fit
font.pixelSize: a.font.pixelSize
Layout.fillWidth: true
Layout.fillHeight: true
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: "black"
}
}
}
}