[Qt-interest] How can I set to position in QPlainTextEdit?
Iurii Gordiienko
hordi at ukr.net
Wed Dec 31 14:49:19 CET 2008
Any changes... :(
--- Original Message ---
From: "Daniel V?rit?" <daniel.verite at gmail.com>
To: qt-interest at trolltech.com
Date: 31 december, 15:10:45
Subject: Re: [Qt-interest] How can I set to position in QPlainTextEdit?
Iurii Gordiienko writes
> Attached file - is a simple example. After second click all text
will be with green background...
I've tried your example. My understanding is that the problem happens
when the CharFormat is applied to a piece of text that happens to
coincide with the current selection.
Try to clear the current selection, in addition to textedit ->clear()
QTextCursor c = textedit->textCursor();
c.clearSelection();
textedit->setTextCursor(c);
Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage:
http://www.manitou-mail.org
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Твой новогодний номер InternetUA тут .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081231/6823cdc8/attachment.html
More information about the Qt-interest-old
mailing list