Предположим, что у моей модели есть элементы со следующей строкой для Qt:: DisplayRole
<span>blah-blah <b>some text</b> other blah</span>
Я хочу, чтобы QTreeView (фактически, любой элемент) отображал его как богатый текст. Вместо этого представления элементов отображают его как чистый текст по умолчанию. Как добиться желаемого рендеринга?
На самом деле, это модель результатов поиска. Пользователь вводит текст, какой-то документ просматривается в этом тексте, а пользователю представлены результаты поиска, где поиск слов должен быть смелее, чем окружающий текст.