Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-3013

Can't construct QFont.Tag, preventing use of QFont.setFeature()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.9.0, 6.8.3
    • 6.8.2
    • PySide
    • None
    • All
    • 8f34aaf4d (dev), c5d632962 (6.8)

    Description

      QFont::setFeature() was introduced in Qt 6.7 and it takes a QFont::Tag.

      PySide6 6.8.2 does not allow constructing a QFont.Tag with a four-character code, which prevents using QFont.setFeature():

      tag = QFont.Tag("tnum")  # <-- TypeError
      font = QFont()
      font.setFeature(tag, 1)
      

      The following constructors (described in C++ docs) are also missing (AttributeError):

      tag2 = QFont.Tag.fromString("tnum")
      tag3 = QFont.Tag.fromValue(0x746e756d)

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            ij Iliyas Jorio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes