[Qt-interest] Setting focus to a QTableWidget cell

Duane Hebert spoo at flarn.com
Thu Apr 2 17:44:25 CEST 2009


"Raja Sekharan" <websweetweb at gmail.com> wrote in message news:gr2m1a$j2n$1 at eple.troll.no...
> Hi,
> 
> In a table widget, I am trying to insert a new row and give the user the
> text cursor for the first cell in the row. But all I am able to do with
> setCurrentItem is select the cell, not focus it and give it the text
> cursor. How do I automate the user action of the double clicking on the
> cell to edit it?

How about QTableWidget::editItem ( QTableWidgetItem * item ) using
the current item?



More information about the Qt-interest-old mailing list