Failure in converting PyQt5 to PyQt6
Maurizio Berti
maurizio.berti at gmail.com
Mon Jan 13 19:50:23 GMT 2025
Il giorno lun 13 gen 2025 alle ore 10:04 ullix <ullix at urkam.de> ha scritto:
> One major headache was, that my font-formatting was severly broken. It
> turned out, the font-weight had been changed from 0...99 in PYQt5 to
> 0...1000 in PyQt6. I discovered this only because of a typo of doing '999'
> when I wanted to do '999'. Quite annoying.
>
This has absolutely nothing to do with PyQt. The change has been introduced
since Qt 6.0, and while most of the classes and functions didn't change,
you should always check the documentation when porting to a different major
version.
Start by looking at the list of changes in modules (
https://doc.qt.io/qt-6/modulechanges.html ) and go through each one you use.
The change in font weight values is specifically listed in the related
section of the QtGui module (
https://doc.qt.io/qt-6/gui-changes-qt6.html#the-qfont-class ).
MaurizioB
--
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250113/1bda0af3/attachment.htm>
More information about the PyQt
mailing list