PDA

View Full Version : Displaying ¶ (pilcrow, paragraph mark) in QTextEdit at the end of each paragraph



ultr
2nd May 2012, 01:51
I need to display ¶ (pilcrow, paragraph mark) in QTextEdit at the end of each paragraph, e.g. places where user inputs \n characters.

This character should not be copyable nor obtainable with QTextEdit::toPlainText() and QTextEdit::toHtml().
It should just be drawn there, preferably in a different color (alpha=0.5, etc.), so that user can easily see where the paragraph ends.

But the user should be able to put his own ¶ signs in the text.

What would you suggest as the best way to achieve this?