view->setMouseTracking(true);
view->viewport()->setAttribute(Qt::WA_Hover,true);
{
qDebug()<<index.row();
if ( event
->type
() == QEvent::HoverEnter ) { qDebug
()<<
"enter...";
} // doesnt appear. (it does on mousemove)
return 0;
}
view->setMouseTracking(true);
view->viewport()->setAttribute(Qt::WA_Hover,true);
bool BoxDelegate::editorEvent ( QEvent * event, QAbstractItemModel * model, const QStyleOptionViewItem & option, const QModelIndex & index )
{
qDebug()<<index.row();
if ( event->type() == QEvent::HoverEnter ) { qDebug()<<"enter..."; } // doesnt appear. (it does on mousemove)
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks