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. QML measurement unit symbols
Forum Updated to NodeBB v4.3 + New Features

QML measurement unit symbols

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 339 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.
  • K Offline
    K Offline
    Kuzma30
    wrote on last edited by
    #1

    In my app I use some measurement unit such km/h, l/ha. App support some language (en, ua).
    I want show for example km/h as

    km
    ---
    h
    
    

    Any simple and universal way to do this in QML Text?

    MarkkyboyM 1 Reply Last reply
    0
    • K Kuzma30

      In my app I use some measurement unit such km/h, l/ha. App support some language (en, ua).
      I want show for example km/h as

      km
      ---
      h
      
      

      Any simple and universal way to do this in QML Text?

      MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • S Offline
        S Offline
        ShaunaB1
        wrote on last edited by
        #3

        In QML, to show 'km/h" with "km" on top and "h" below, just put "km" and "h" in separate text boxes and a line in between. Align them in the center to make it look neat.

        K 1 Reply Last reply
        0
        • S ShaunaB1

          In QML, to show 'km/h" with "km" on top and "h" below, just put "km" and "h" in separate text boxes and a line in between. Align them in the center to make it look neat.

          K Offline
          K Offline
          Kuzma30
          wrote on last edited by
          #4

          @ShaunaB1 I also thinking about using that way. (problem this way not simple for internalization)

          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