diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp index 12d0d952de4..4f02abd1dce 100644 --- a/src/widgets/itemviews/qabstractitemview.cpp +++ b/src/widgets/itemviews/qabstractitemview.cpp @@ -3435,7 +3435,9 @@ void QAbstractItemView::dataChanged(const QModelIndex &topLeft, const QModelInde topLeft.row() > bottomRight.row() || topLeft.column() > bottomRight.column()) { // invalid parameter - call update() to redraw all - Q_ASSERT(false); + qWarning().nospace() << "dataChanged() called with an invalid index range:" + << "\n topleft: " << topLeft + << "\n bottomRight:" << bottomRight; d->viewport->update(); } else if ((bottomRight.row() - topLeft.row() + 1ULL) * (bottomRight.column() - topLeft.column() + 1ULL) > d->updateThreshold) {