class MyItemDelegate: public QItemDelegate{public: MyItemDelegate(QObject * parent = 0) : QItemDelegate(parent) {}protected: void drawFocus(QPainter*, const QStyleOptionViewItem&, const QRect&) const {}};// при создании представленияtable = new QTableWidget(rows, cols, this);table->setItemDelegate(new MyItemDelegate(this));