Appending text to a KTextBrowser
Tim
suttont at onetel.net.uk
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");
primeTextBrowser->setText(primeTextString);
I know I can use a const call like this:
primeTextBrowser->setText(QString("Hello"));
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
this?
Many THanks
Tim
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list