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

Qt-interest Archive, February 2007
How can I trace the enter-editing event on a cell of a QTableView?


Message 1 in thread

Now I need to do some routines whenever I enter the editing status or exit
the editing status on a cell of a QTableView. How can I handle that event?
I searched Qt assistant but get no idea.

--
 [ signature omitted ] 

Message 2 in thread

On 24.02.07 14:09:44, Kingsun Soong wrote:
> Now I need to do some routines whenever I enter the editing status or exit
> the editing status on a cell of a QTableView. How can I handle that event?
> I searched Qt assistant but get no idea.

Well, there are possibly many ways, one would be to use your own
delegate and do whatever you want to before you create the editor widget
and after the setModelData() did its job.

It might also be possible to use the edit() slot and the closeEditor()
protected slot in your own view-subclass.

Andreas

-- 
 [ signature omitted ]