Important: Please read the Qt Code of Conduct -

Simple question QML

  • How to add subscript to text element,
    property string mysymbol:"<sup>T</sup>C"
    property int age: 24

    Text {
    id: myAgeInText
    text: age + "<sup>T</sup>C"
    This goes in new line displays age and subscript in two separate line

    Edit: please use @ tags around code sections; Andre

  • Are you looking for the <sub> html tag? (It is the opposite of the <sup> that you have posted)

Log in to reply