void QItemDelegate::drawDisplay ( QPainter * painter, const QStyleOptionViewItem & option, const QRect & rect, const QString & text ) const [virtual protected]
Renders the item view text within the rectangle specified by rect using the given painter and style option.
作用:
绘制在view中显示的item的text,即绘制要在view中显示的文字,也就是item的内容。
该方法是paint()函数中使用的。