QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &/* option */, const QModelIndex & index ) const;
pseudo codevoid paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const{ if ( option.state == QStyle::State_MouseOver ) { emit setRowHovered(true, index.row); } else { emit setRowHovered(false, index.row); }}QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &/* option */, const QModelIndex & index ) const; ---- вызываеться когда клиент начал редактирование.
pseudo codevoid mouseDoubleClickEvent ( QMouseEvent * event ){ event->ignore();}void keyPressEvent(QKeyEvent *event) { if ( event == myEvent ) { celectedRow->activate(); } else { parent(event); }}}
EditTriggers