Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, August 2006
Editing QTableWidget cells


Message 1 in thread

Hi,

I can edit without a problem a cell of a QTableWidget by clicking on it
and entering a new value. However, when I use the Tab key to go to the
next cell, the following message is displayed on the console:

	edit: editing failed

Furthermore, if I try to enter a value, nothing happens.

In short, clicking allows to enter a value whereas using the Tab key
gives nothing. Is this the expected behavior?

Cheers,

	Ãmeric

--
 [ signature omitted ] 

Message 2 in thread

> I can edit without a problem a cell of a QTableWidget by clicking on it
> and entering a new value. However, when I use the Tab key to go to the
> next cell, the following message is displayed on the console:
> 
> 	edit: editing failed

This is due again to my custom delegate for editing my QTableWidget
cells. In this table are displayed items whose 1st cell isn't editable
and 2nd and 3rd items are edited through a QSpinBox.

The "edit: editing failed" message only appears when I'm editing the 3rd
cell of a given item. When I'm finished editing, I press the Tab key to
go to the next entry and since this is the 1st cell of the item in the
following row, I'm getting the error message.

How to prevent this?

--
 [ signature omitted ]