qt delegate drawDisplay()

来源:互联网 发布:淘宝买家具很久不发货 编辑:程序博客网 时间:2024/06/06 01:02

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()函数中使用的。



0 0