follow as lykurg said .. first create an object as a subclass of QTextEdit , reimplement keyPressEvent of that class . http://www.codeprogress.com/cpp/libr...p#.Uqg29vWEq1s
and use the QTextCursor to set the text with the above html code i gave last time .
Bookmarks