Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML TextArea emoji width measure error
Qt 6.12 LTS is out! See what's new in the release blog

QML TextArea emoji width measure error

Scheduled Pinned Locked Moved Solved QML and Qt Quick
1 Posts 1 Posters 356 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.
  • H Offline
    H Offline
    hobbe
    wrote on last edited by hobbe
    #1

    0_1554861392986_a4dd32e0-6975-48de-a179-dec40738f29a-image.png
    From image you can see,the selected emoji char should be a little more wide than double x-width,but the selection width acturally are 4 times than the emoji should be.
    And,When I measure width of this emoji(combined with multi QChar) via QFontMetrics,the result is emojiLen2x-width not 2*x-width
    How can I fix this problem?

    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
    • Unsolved