[Qt-interest] to remove currently appended text in QString
Eckhard Jokisch
e.jokisch at orange-moon.de
Fri Jul 24 12:31:58 CEST 2009
What about:
QString backup;
backup = textItem;
textItem->setPlainText(QString("%1 One").arg(defaultText));
textItem = backup;
Cheers
Eckhard
On Friday 24 July 2009 12:21:48 Chandru... wrote:
> hi friends,
> i am just asking a perfect way of removing the text that i currently added
> to my QString
> ex:
> textItem->setPlainText(QString("%1 One").arg(defaultText));
>
> than how can i remove the last appended text ..
>
> currently i am resetting the text to original text
> textItem->setPlainText(defaultText);
>
> but is there any other elegant way ... please help
More information about the Qt-interest-old
mailing list