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. How to specify font-variant-numeric in QT?
Forum Update on Monday, May 27th 2025

How to specify font-variant-numeric in QT?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 305 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.
  • P Offline
    P Offline
    PolywickStudio
    wrote on 22 Jul 2023, 04:03 last edited by
    #1

    Please see:
    https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric

    There is a CSS style:
    font-variant-numeric: slashed-zero;

    Is it possible to enable this in QT - in QML or QT-Widgets?
    If so, how?

    P 1 Reply Last reply 25 Jul 2023, 00:37
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jul 2023, 19:12 last edited by
      #2

      Hi,

      Are you talking about Qt's stylesheet system or QFont ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P PolywickStudio
        22 Jul 2023, 04:03

        Please see:
        https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric

        There is a CSS style:
        font-variant-numeric: slashed-zero;

        Is it possible to enable this in QT - in QML or QT-Widgets?
        If so, how?

        P Offline
        P Offline
        PolywickStudio
        wrote on 25 Jul 2023, 00:37 last edited by
        #3

        QFont or QStyleSheet.

        The end result, is zero 0 turns to Ø in QLabel,
        or while editing within QLineEdit.

        Is that possible?

        S 1 Reply Last reply 25 Jul 2023, 20:05
        0
        • P PolywickStudio
          25 Jul 2023, 00:37

          QFont or QStyleSheet.

          The end result, is zero 0 turns to Ø in QLabel,
          or while editing within QLineEdit.

          Is that possible?

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Jul 2023, 20:05 last edited by
          #4

          Based on this bug report, I think: not yet.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          22 Jul 2023, 04:03

          • Login

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