Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Simple question QML
Forum Updated to NodeBB v4.3 + New Features

Simple question QML

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Immii
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • F Offline
      F Offline
      favoritas37
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved