Hi,

I have a QTextDocument (in an QTextEdit) that contains HTML formatted text. Based on the enclosing tag (if any) I need to perform different tasks when the user presses the enter key.

How can I get the enclosing tag?

/Regards