Skip to content

Fix qfont::weight values set in several ui files

Lucas Givord requested to merge lucas.givord/paraview:fix_font_weight_qt5 into master

On Windows with qt5, QFont::Weight should always be between 0 and 99. Some .ui files set it to more than the max value which leads to a crash.

image.png

related doc : https://doc.qt.io/archives/qt-5.12/qfont.html#Weight-enum

Note that I replace to the corresponding css value (so 600 in html/css (which is DemiBold) will be repalced by 63)

For more details : https://stackoverflow.com/questions/47455589/qt-change-font-weight

Edited by Lucas Givord

Merge request reports