Set text on a QTextBrowser without changing the font/style

441 views Asked by At

i want to ask if there is a way to set the text of a QTextBrowser without changing its style. I'm using pyqt. I use Qt Creator to define the window style but i can't change a QTextBrowser text without chaning its style so i mainly have to full my code of html code to reach my goal.

My ultimate weapon is to build a method that read the current QTextBrowser HTML and modify it (probably with regexp) to keep the style untouched. Is theren't a simplier way?

0

There are 0 answers