title: Create a tag inside QTextEdit
body: <p>What I would like to do is to insert a tag with a person's name inside a QTextEdit. I can choose the person from a list and then click on add to create a tag (with a cross to delete it) within the QTextEdit. I enclose an image to explain this concept:</p>
  <p><a href="https://i.stack.imgur.com/VJzii.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VJzii.png" alt="tag" /></a>
  How could I create something like this? Unfortunately I have little experience in Qt.</p>