[Qt-interest] How to change current line format in QTextEdit?

程梁 chengliang.soft at gmail.com
Thu Mar 24 14:11:31 CET 2011


Hi, there! I want to find out how to change current line format in
QTextEdit?

In the document I read that formatting can be applied to the current text
document using the setCharFormat(), mergeCharFormat(), setBlockFormat() and
mergeBlockFormat() functions. If the cursor has no selection, current block
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?

Thank you all!

-- 
Cheng Liang
from: chengliang.soft at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110324/05e3c8a6/attachment.html 


More information about the Qt-interest-old mailing list