Qtextbrowser Hyperlinks In Pyqt4
I have a QTextBrowser where I've entered that sample text: Column1 Column2 1 2 3 4 www.google.com Between the columns there are tabs and between the numbers there are spaces
Solution 1:
I think I got it. In case it might be useful, here is my solution: A html file does respect your format, if you put the style in the css to "pre", and not like QTextBrowser to "pre-wrap". Moreover, in the end the typed links can directly be replaced by the created hyperlinks.
The html file that is generated and setted to the QTextBrowser then partwise looks like:
<styletype="text/css">#editor { white-space: pre; }</style><pid='editor', style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><aname="editor"></a>Column1 Column2</p>
Post a Comment for "Qtextbrowser Hyperlinks In Pyqt4"