Hi and welcome to devnet,
What about painting a partially transparent rectangle over the part of the text that should be highlighted ? You could draw the text first and then the rectangle over.
Hope it helps
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.