[Qt-interest] to remove currently appended text in QString
Chandru...
sekarwagmare at gmail.com
Fri Jul 24 12:47:55 CEST 2009
ya thanks ... thats a good way ..
On Fri, Jul 24, 2009 at 4:01 PM, Eckhard Jokisch
<e.jokisch at orange-moon.de>wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090724/9ca40b50/attachment.html
More information about the Qt-interest-old
mailing list