[Qt-interest] QStyledItemDelegate and closeEditor

Carsten Breuer CarstenBreuerQt at textwork.de
Wed Apr 28 22:44:30 CEST 2010


Hi Trolls,



i have a problem with the combination QTableView/ItemDelegate/Model.

The model/view concept in QT is really great, but it miss a lot
of things that make it really comfortable. Since there are special
requirement for my application (e.g a dot and a comma should be
treat as a decimal seperator, number of decimals, ...), i ended
up with subclasses of QTableView, QAbstractItemDelegate, QDoubleSpinBox.

One of the requirement is, that a QTableView should work
like excel. A Qt::Key_Down should leave the current editor
and jump to the next cell under it (also in editing mode).
A Qt::KeyLeft twice at the end of the cell text should jump
in the next cell right (like tab).

Has anybody a idea how to solve this?


Best Regards,



Carsten



More information about the Qt-interest-old mailing list