<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1484145144098_5666">Hello,</div><div id="yui_3_16_0_ym19_1_1484145144098_5666"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">This is on Windows 7 - 64bit, python 3.5.2.<br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">PyQt5-5.7.1 is installed by "pip install PyQt5"<br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">In PyQt 5.7.1, texts displayed by QTableWidget and QListWidget does not look the same as in previous versions.</div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">So, I looked at the font settings that are used, and found this :</div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">myListWidget.font().family() :<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7941">Returns "Segoe UI" in PyQt 5.3.1 and 5.7.0</div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">Returns "MS Shell Dlg 2" in PyQt 5.7.1</div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7994">myListWidget.font().pointSize() :<br id="yui_3_16_0_ym19_1_1484145144098_7995"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7996">Returns 9 in PyQt 5.3.1 and 5.7.0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7997">Returns 8 in PyQt 5.7.1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7998"><br id="yui_3_16_0_ym19_1_1484145144098_7999"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7998"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_7998"><div dir="ltr" style="margin-top: 0.1em; margin-bottom: 0.1em;" id="yui_3_16_0_ym19_1_1484145144098_8081">myListWidget.font().pointSizeF() :<br id="yui_3_16_0_ym19_1_1484145144098_8082"></div><div dir="ltr" style="margin-top: 0.1em; margin-bottom: 0.1em;" id="yui_3_16_0_ym19_1_1484145144098_8083">Returns 9.0 in PyQt 5.3.1 and 5.7.0</div><div dir="ltr" style="margin-top: 0.1em; margin-bottom: 0.1em;" id="yui_3_16_0_ym19_1_1484145144098_8084">Returns 8.25 in PyQt 5.7.1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484145144098_8085"><br id="yui_3_16_0_ym19_1_1484145144098_8086"></div></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">I guess it's probably a Qt bug, not a PyQt one.</div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">My solution : use a qss styleSheet, containing this for QTableWidget and QListWidget :</div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">font-size: 12px;<br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">font-family: "Segoe UI", sans-serif;<br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666" dir="ltr">That's not a very nice solution, because it will only work on Windows ("Segoe UI" is Windows-specific), but it will do until a real fix is found.</div><div id="yui_3_16_0_ym19_1_1484145144098_5666"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666"><br></div><div id="yui_3_16_0_ym19_1_1484145144098_5666">Cheers.</div><div id="yui_3_16_0_ym19_1_1484145144098_5666"><br></div></div></body></html>