16,235
社区成员
发帖
与我相关
我的任务
分享
void QAbstractItemViewPrivate::checkMouseMove(const QPersistentModelIndex &index) {
//we take a persistent model index because the model might change by emitting signals
Q_Q(QAbstractItemView);
setHoverIndex(index);
if (viewportEnteredNeeded || enteredIndex != index) {
viewportEnteredNeeded = false;
if (index.isValid()) {
emit q->entered(index);
#ifndef QT_NO_STATUSTIP
QString statustip = model->data(index, Qt::StatusTipRole).toString();
......
}