path: root/src/widgets/itemviews
diff options
authorChristian Ehrlicher <>2019-12-04 20:23:37 +0100
committerChristian Ehrlicher <>2019-12-09 18:49:53 +0100
commitc27123d7435e9451f3e44d9e823734e605279d0a (patch)
treeb8aae8a14a2930ca8f1b609cd4a80939ba1ac1a6 /src/widgets/itemviews
parent46d21a3b34c2d252db14419a45957991acea949d (diff)
QAbstractItemView: add a note about ToolTipRole in dataChanged()
Qt::ToolTipRole is not honored by dataChanged() which may be a little bit surprising. Therefore add a small note about this behavior. Fixes: QTBUG-78726 Change-Id: Ic4361f55e55ab59d5bae2fdb98907a62055604c5 Reviewed-by: Friedemann Kleint <> Reviewed-by: Paul Wicking <>
Diffstat (limited to 'src/widgets/itemviews')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp
index 7ede46dbec..b07faf8be4 100644
--- a/src/widgets/itemviews/qabstractitemview.cpp
+++ b/src/widgets/itemviews/qabstractitemview.cpp
@@ -3318,6 +3318,8 @@ void QAbstractItemView::update(const QModelIndex &index)
The \a roles which have been changed can either be an empty container (meaning everything
has changed), or a non-empty container with the subset of roles which have changed.
+ \note: Qt::ToolTipRole is not honored by dataChanged() in the views provided by Qt.
void QAbstractItemView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)