Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.5.3
-
None
-
Qt 4.5.3
Not OS specific
-
0baa15e68c7b2e009c1f81f81148939725c216c8
Description
dataChange on single cells calls update.
but the funtion never calls the update on the rect, because the rect never intersects the viewport geometry.
I think the geometry give an the geometry to the parent widget and visualRect the geometry to the viewport. so that the two rect shifted by header sizes.
i use an own implementation of headerview, but also with the default tablewidget this does not working.
the only workaround is to send an dataChanged for more than one cell, but this updates all cells.
//4.5.3
void QAbstractItemView::update(const QModelIndex &index)
{
Q_D(QAbstractItemView);
if (index.isValid())
}
//4.5.2
void QAbstractItemView::update(const QModelIndex &index)
{
Q_D(QAbstractItemView);
if (index.isValid())
d->viewport->update(visualRect(index));
}