[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: updating khtml view after document change
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2001-05-04 10:54:16
[Download RAW message or body]
Hi folks!
I need some advice on using the KHTMLPart.
I have the part's instance as a memeber of the application's main view
managed by a QHboxLayout.
The part's view is the widget within the layout.
In the app view's contructor I create the part and a simple HTML document
with an empty body element by using the begin-write-end method.
On of the view's methods looks like this:
void KmudView::addText(QString text)
{
QString htmlText = transformToHTML(text);
htmlDoc = htmlPart->htmlDocument();
htmlBody = htmlDoc.body();
DOM::HTMLElement htmlElem = htmlDoc.createElement("p");
htmlElem.setInnerHTML(htmlText);
htmlBody.appendChild(htmlElem);
}
the tranformToHTML method does stuff like "<" to "<"
All text added this way before the view is shown is visible in the view, but
all text added fater the show() doesn't.
(Actually if I change the views width it does, but again it doesn't when
changing it's height)
Any ideas?
TIA,
Kevin
P.S. QT = 2.2.2; kdelibs = 2.1.2
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic