tags:

views:

78

answers:

1

HI,

I have some data there in my tablewidget and it is editable. My intention is to take data from edited row and column. IS it possible. Is it possible to check the edited row and column. Any specific signal is there?

+2  A: 

Hi.

Of course,

void QTableWidget::itemChanged ( QTableWidgetItem * item )   [signal]

This signal is emitted whenever the data of item has changed.

Add connect like this:

connect(tableWidget,
    SIGNAL(itemChanged(QTableWidgetItem *)), this, SLOT(on_any_itemChanged(QTableWidgetItem *)));
mosg
Is it possible to get the row and column position of changed (row,column)
How to get the row and column position of changed data
@sijith Yes, it's possible. When on_any_itemChanged() emited, use pointer item to get row/column, like *qDebug() << item->row();*
mosg