Qt-interest Archive, April 2007
QTextBrowser Html Templates ?
Message 1 in thread
Hello List,
i m just playing around with QTextBrowser. So far i just put the Html in
a QString and insert it with insertHtml(). Which gets a bit clumsy as
the Html get bigger.
I wonder if there is some sort of Template Mechanism implemented
somewhere, which i could use or maybe have a look at.
Thanks
--
[ signature omitted ]
Message 2 in thread
Manuel Schmidt schrieb:
> Hello List,
> i m just playing around with QTextBrowser. So far i just put the Html
> in a QString and insert it with insertHtml(). Which gets a bit clumsy
> as the Html get bigger.
>
> I wonder if there is some sort of Template Mechanism implemented
> somewhere, which i could use or maybe have a look at.
>
> Thanks
>
Funny, thing. Writing it down and thinking over it again just brought me
a solution.
Write the Html in a file. Place Markers where i want cutom parts and use
QString.replace().
thanks list :)
--
[ signature omitted ]
Message 3 in thread
Manuel Schmidt wrote:
> Hello List,
> i m just playing around with QTextBrowser. So far i just put the Html in
> a QString and insert it with insertHtml(). Which gets a bit clumsy as
> the Html get bigger.
>
> I wonder if there is some sort of Template Mechanism implemented
> somewhere, which i could use or maybe have a look at.
>
> Thanks
>
Or this,
ui.sightingTextBrowser->clear();
ui.sightingTextBrowser->setHtml(QString);
--
[ signature omitted ]