擅长:python、mysql、java
<p>我对Python了解不多,但有一个想法。解决方案是为<a href="http://qt-project.org/doc/qt-4.8/qabstractitemview.html#setItemDelegateForColumn" rel="nofollow">column of ^{<cd1>}</a>使用自定义委托,并使用富文本支持实现其<a href="http://qt-project.org/doc/qt-4.8/qstyleditemdelegate.html#paint" rel="nofollow">^{<cd2>}</a>方法。在委托的<code>paint()</code>逻辑中,在显示之前,将关键字包装成类似于<code><font color="red">keyword</font></code>的HTML标记。在</p>
<p>您可以找到一个C++代码<a href="http://qt-project.org/faq/answer/how_can_i_have_richtext_in_my_qtableview" rel="nofollow">here</a>。在</p>