Details
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
For Gerrit Dashboard: PYSIDE-3013 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
623607,6 | PySide6: Add QFont.Tag(str), QFont.Tag.fromString(), QFont.Tag.fromValue() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
624302,2 | PySide6: Add QFont.Tag(str), QFont.Tag.fromString(), QFont.Tag.fromValue() | 6.8 | pyside/pyside-setup | Status: MERGED | +2 | 0 |