[PyQt] getFont does not work in PyQt 5.11.2 on macOS
Barry Scott
barry at barrys-emacs.org
Sat Oct 6 10:39:55 BST 2018
The attached getfont.py program shows that QtWidgets.QFontDialog.getFont
fails to return the selected font when run on PyQt 5.11.2, but it work with PyGt 5.10.1.
macOS version 10.14
Here is the output I get, I choose Courier 18 when the prompted.
$ python3.6 getfont.py
Python sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
PyQt 5.11.3, Qt 5.11.2
QQQ code_face 'Monaco' code_point_size 13
QQQ FontTab.onSelectFontCode() font in <PyQt5.QtGui.QFont object at 0x103ed1c18> 'Monaco' 13
QQQ ok (<PyQt5.QtGui.QFont object at 0x103ed1c88>, True)
QQQ FontTab.onSelectFontCode() font out <PyQt5.QtGui.QFont object at 0x103ed1c88> 'Monaco' 13
QQQ code_face = 'Monaco' 13
Barry
More information about the PyQt
mailing list