[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: Appending text to a KTextBrowser
From: August =?iso-8859-1?Q?H=F6randl?= <august.hoerandl () gmx ! at>
Date: 2002-02-04 15:46:07
[Download RAW message or body]
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@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@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic