Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unicode symbols not being displayed in widgets
QtWS25 Last Chance

Unicode symbols not being displayed in widgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 274 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote on last edited by
    #1

    I have a string containing the Unicode character  (U+FFFC or \ufffc).

    If I call QFontMetrics::InFont( QChar ) on the character it returns true.

    If I call QFontMetrics::horizontalAdvance( QChar ) on the character it returns 24.

    But nothing is displayed for this character in my QTableView for any of the major fonts. Not even a space. It appears to be 0 width. Other characters display fine.

    Is this a known bug?

    This is a problem with Qt 5.15.2 on Windows 10 and Qt 5.15.2 on macOS 12.01.

    1 Reply Last reply
    0
    • AndyBriceA Offline
      AndyBriceA Offline
      AndyBrice
      wrote on last edited by
      #2

      Here you can see the same text containing QChar( 0xFFFC ) characters is displayed differently via QLineEdit (spaces), QTextView (0 width) and qDebug (? chars).

      110dc95e-5cfd-4117-bfa6-514455737694-image.png

      I have added this to the Qt bug database as:
      https://bugreports.qt.io/browse/QTBUG-98645
      I have attached example code there.

      1 Reply Last reply
      1

      • Login

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