Appending text to a KTextBrowser
Tim
suttont at onetel.net.uk
Mon Feb 4 23:31:48 GMT 2002
Thank you very much!
Tim
On Mon, 2002-02-04 at 15:46, August Hörandl wrote:
> Tim wrote:
> >
> > 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);
>
> 1) this calls setText() with a Pointer to a QString
>
> > I know I can use a const call like this:
> >
> > primeTextBrowser->setText(QString("Hello"));
>
> 2) here you call setText() with a QString - no pointer
>
> if 2) works: try this instead of 1)
> primeTextBrowser->setText(*primeTextString);
>
> hth
> Gustl
> --
> August Hörandl august.hoerandl at gmx.at
> NT has low MTB-BSD numbers (mean time between blue screen of death)
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
-
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