Hi

I'm tring to update a caracter under the mouse pointer, like an hiperlink do when the mouse pass over it.

My code is the following:

Qt Code:
  1. void MyClass::mouseMoveEvent(QMouseEvent *event)
  2. {
  3. QTextCursor Cursor;
  4.  
  5. Cursor = cursorForPosition(event->pos());
  6.  
  7. if(!Cursor.isNull())
  8. {
  9. Format= Cursor.charFormat();
  10.  
  11. if(Format.isValid())
  12. {
  13. Format.setFontUnderline(true);
  14. Cursor.setCharFormat(Format);
  15. }
  16. }
  17. }
To copy to clipboard, switch view to plain text mode 

but nothing happen and the character is not updated. Please, note that this is only an example code, the use of setFontUnderline() is just for explain thet also if I update the character under cursor my update doesn't reflect into the text edit widget. Is there an additional function to call for force the repaint of the character after set the new property?

Thank you