Appending text to a KTextBrowser

Tim suttont at
Mon Feb 4 01:43:30 GMT 2002

Could anyone tell me how to use qstring to append text to a KTextBrowser
(I am a newbie at this). I have a class with a member 

QString *primeTextString; 

Then in one of the methods, I am trying to add  text in a Ktextbrowser:

primeTextString=new QString("Hello");

I know I can use a const call like this:


But I need to be able to pass the setText a variable rather than a
constant. Can anyone help me with a small code snippet showing how to do

Many THanks


to unsubscribe from this list send an email to kdevelop-request at with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list