I have some problems with a qtablewidget. It has 4 rows and 3 columns.
It is only possible to move up and down in the cells 0:1, 1:1, 2:1 & 3:1.
The cells 0:1 and 2:1 is editable through spinbox delegates.

To have control of what cell is currently set i keep track via index of row
and index of column (to be able to wrap) and after each move the indexes is updated and i call setCurrentIndex().

The indexes always set correct when i use the up & down keys, but the focus now and then suddenly jumps to the wrong cell?

I have debugged this problem but I cant find anything wrong, there has to be
some feature of qt (qtablewidget?delegates?) I have not understood?

My code is running on an embedded system with qtopia.

What to do?