Philipp
18th March 2006, 21:01
Hi,
I am (ab-)using the QTextBrowser widget a bit to get some text displayed which contains links that generate a certain action. Now I would like to have the links not displayed as standard hyperlinks (blue underlined), but have them displayed as a box or similar, so I would like to influence the way the links are rendered.
How can I do that? I already had a look at QAbstractTextDocumentLayout but I still don't get how all these components work together and where I have to attack so that I don't have to rewrite any of the other rendering code except the one for links (which would be the ideal case).
In hope for an easy solution,
Philipp
I am (ab-)using the QTextBrowser widget a bit to get some text displayed which contains links that generate a certain action. Now I would like to have the links not displayed as standard hyperlinks (blue underlined), but have them displayed as a box or similar, so I would like to influence the way the links are rendered.
How can I do that? I already had a look at QAbstractTextDocumentLayout but I still don't get how all these components work together and where I have to attack so that I don't have to rewrite any of the other rendering code except the one for links (which would be the ideal case).
In hope for an easy solution,
Philipp