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()函数中使用的。
Renders the item view text within the rectangle specified by rect using the given painter and style option.
作用:
绘制在view中显示的item的text,即绘制要在view中显示的文字,也就是item的内容。
该方法是paint()函数中使用的。
相关文章推荐
- qt delegate委托 paint()方法
- qt delegate createEditor()方法
- qt delegate setEditorData()
- qt delegate代理 setModelData()方法
- qt 委托 paint() 显示数据
- qt QItemDelegate 委托 相关函数
- qt 委托 delegate
- qt model 中的角色 role Qt::CheckStateRole角色
- qt 代理模型 proxy model QSortFilterProxyModel
- QListWidget QTableWidget 项视图类
- pyqt5加载网路图片,不本地下载。
- qt多文档
- 软件实习笔记二(Qt简单对话框实例开发)
- 学习记录-Qt文件的读写和删除等操作
- 诡异的Qt eventFilter
- qt 子窗口访问父窗口中的成员函数、成员变量
- qt viewport window 视口 窗口
- qt model 与 view 的数据显示
- qt学习笔记
- qt model中的方法columnCount()方法