FinderCheng
24th March 2011, 15:49
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!
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!