Quote Originally Posted by spirit View Post
example
Qt Code:
  1. class MyDelegate: public QItemDelegate
  2. {
  3. Q_OBJECT
  4. public:
  5. virtual void drawFocus ( QPainter * /*painter*/, const QStyleOptionViewItem & /*option*/, const QRect & /*rect*/ ) const {}
  6. };
  7. ...
  8. QTableWidget *table = new QTableWidget(10, 10);
  9. table->setItemDelegate(new MyDelegate());
  10. for (int row = 0; row < 10; ++row) {
  11. for (int col = 0; col < 10; ++col) {
  12. table->setItem(row, col, item);
  13. }
  14. }
  15. ...
To copy to clipboard, switch view to plain text mode 
Thanks a lot Spirit, for not giving up on me
I finally got what I need.

Sami