Hi All,

I have encountered a small problem in QTableWiget.

I want to navigate through table widget created programatically on Windows.
Some of the items in table are non-editable and flags are set as

Qt Code:
  1. QTableWigetItem* item = new QTableWidgetItem(str);
  2. qTableWiget->setItem(row, column, item);
  3. item->setFlags(item->flags() & (~Qt::ItemIsEditable));
To copy to clipboard, switch view to plain text mode 

I have intialize the table item with default properties as gets set in designer.
Qt Code:
  1. qTableWiget->setTabKeyNavigation(true);
  2. qTableWiget->setAutoScroll(true);
  3. qTableWiget->setHorizontalScrollMode(QAbstractItemView::ScrollPerItem);
  4. qTableWiget->setVerticalScrollMode(QAbstractItemView::ScrollPerItem);
  5. qTableWiget->setSelectionMode(QAbstractItemView::ExtendedSelection);
  6. qTableWiget->setEditTriggers(QAbstractItemView::AnyKeyPressed |
  7. QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed);
To copy to clipboard, switch view to plain text mode 

When I clicked on any of the item, it gets selected.
But when I use arrow keys or tab key, no other item gets selected.

Please let me know your suggestions on it.