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. How to change the text height in qml?
Forum Updated to NodeBB v4.3 + New Features

How to change the text height in qml?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 507 Views
  • 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.
  • W Offline
    W Offline
    William_alreadyused
    wrote on last edited by
    #1

    I know there's a way to change font size, but I want to change the height of the text without changing the width. This is very important to me, because otherwise I have to import a new font or text image, which is pretty inconvenient for designing.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      William_alreadyused
      wrote on last edited by
      #2

      seems that adding "transform: Scale { origin.x: 25; origin.y: 25; xScale: 3}" in Text works.

      1 Reply Last reply
      0
      • W William_alreadyused has marked this topic as solved on

      • Login

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