[Qt-interest] How to change current line format in QTextEdit?
Denis Mingulov
denis at mingulov.com
Thu Mar 24 15:52:17 CET 2011
Hi,
On Thu, Mar 24, 2011 at 3:11 PM, 程梁 <chengliang.soft at gmail.com> wrote:
> format will be changed. But in my application, the current block in which
> cursor is couldn't be changed. May I missed something? Then how could I
> change current block format which has no selection?
What's the problem? Use another cursor and select what is really needed for you.
http://doc.qt.nokia.com/latest/richtext-cursor.html#multiple-cursors
"Multiple cursors can be used to simultaneously edit the same
document, although only one will be visible to the user in a QTextEdit
widget. The QTextDocument ensures that each cursor writes text
correctly and does not interfere with any of the others."
--
Best Regards,
Denis Mingulov
More information about the Qt-interest-old
mailing list