I need to highlight some text inside the cell of a qtablewidget (so a QTableWidgetItem). I do not want to change the color of all the text inside the cell, just some of it. For qlabels I usually insert html tags but that does not work here.

Does anyone have an idea how to do this?