We are converting some older QT widget code to use QML and I cannot find the equivalent property for the QFont::setStretch()
operation.
The QML Font page shows only family, bold, italic, underline, pointSize, pixelSize, weight, overline, strikeout, capitalization, letterSpacing, wordSpacing, kerning, preferShaping and hintingPreference.
This font selection is being done within a Text
object, along the lines of:
Text {
font.family: "LiberationSans"
font.pixelSize: 178
font.weight: 80
//font.stretch: 75 - doesn't work, no such property
}
Is there no way to set the stretch factor in QML. We're using Qt 5.6 by the way.