<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Il giorno lun 13 gen 2025 alle ore 10:04 ullix <<a href="mailto:ullix@urkam.de">ullix@urkam.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>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.
</div></blockquote><div><br></div>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.</div><div class="gmail_quote gmail_quote_container">Start by looking at the list of changes in modules ( <a href="https://doc.qt.io/qt-6/modulechanges.html">https://doc.qt.io/qt-6/modulechanges.html</a> ) and go through each one you use.</div><div class="gmail_quote gmail_quote_container">The change in font weight values is specifically listed in the related section of the QtGui module ( <a href="https://doc.qt.io/qt-6/gui-changes-qt6.html#the-qfont-class">https://doc.qt.io/qt-6/gui-changes-qt6.html#the-qfont-class</a> ).</div><div><br></div><div>MaurizioB<br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div>