Another PyQt6 oddity
Phil Thompson
phil at riverbankcomputing.com
Mon May 17 16:10:08 BST 2021
On 17/05/2021 15:58, Detlev Offenbach wrote:
> Hello,
>
> I am in the process of porting eric to PyQt6. During this process I
> observed, that the text of the PyQt6 variant of QScintilla is always
> shown with a bold font (see attached screenshot) although only a few
> style are configured to use bold font. The same applies to the line
> numbers, which should be shown with a regular font. What am I doing
> wrong?
>
> Note: I checked the saved styles in the QSettings file and they are
> all correct in there.
The values of the QFont Weight enum have changed between Qt5 and Qt6 so
if you are saving the numerical value (rather than a symbolic name) in
the settings then that might be the problem.
Compare...
https://doc.qt.io/qt-5/qfont.html#Weight-enum
https://doc.qt.io/qt-6/qfont.html#Weight-enum
Phil
More information about the PyQt
mailing list