Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
textBrowser
-
I must write in textBrowser a string in bold and then append an other string but not bold, how I can do?
-
Text { text: "Hello"; font.weight: Font.Bold }
-
@hooanghiep said in textBrowser:
font.weight: Font.Bold }
it doesn't work
-
@vale88 QTextBrowser extends QTextEdit.
use this function: https://doc-snapshots.qt.io/qt5-dev/qtextedit.html#setFontWeight
-
@vale88 https://doc.qt.io/qt-5/qtextedit.html#html-prop
https://doc.qt.io/qt-5/richtext-html-subset.html
-
@jsulm Can I have an example to write rich text?
-
@vale88 I solved