您的位置:首页 > 编程语言 > Qt开发

qt delegate drawDisplay()

2015-10-01 09:42 429 查看
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()函数中使用的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: