Is "font.bold: true" equal to "font.weight: Font.Bold" ?
-
Yes, not that I would trust ChatGPT.
When in doubt the easiest is to check the sources : https://github.com/qt/qtbase/blob/78a011b9ba01496ecfdd1cad1f651a89c4aa72e9/src/gui/text/qfont.h#L374
inline void QFont::setBold(bool enable) { setWeight(enable ? Bold : Normal); }
-
Yes, not that I would trust ChatGPT.
When in doubt the easiest is to check the sources : https://github.com/qt/qtbase/blob/78a011b9ba01496ecfdd1cad1f651a89c4aa72e9/src/gui/text/qfont.h#L374
inline void QFont::setBold(bool enable) { setWeight(enable ? Bold : Normal); }
-