Shaitan
10th July 2007, 12:06
Hi all,
I have a QTableView which can be edited by the user, but there is an index column that can´t have duplicated cells (each row has an unique ID).
For this, i check the contents of the edited cell and search in the index column for it.
The problem is that if i find duplicates, i want to revert to the previous data in that cell.
I´ve been trying to write a QString with the cell gets active with its contents, (signal activated), but it never throws this signal... Is there other way to know when a cell gets selected??? (something like a signal for knowing when a cell gets focused)
Thx!!!
I have a QTableView which can be edited by the user, but there is an index column that can´t have duplicated cells (each row has an unique ID).
For this, i check the contents of the edited cell and search in the index column for it.
The problem is that if i find duplicates, i want to revert to the previous data in that cell.
I´ve been trying to write a QString with the cell gets active with its contents, (signal activated), but it never throws this signal... Is there other way to know when a cell gets selected??? (something like a signal for knowing when a cell gets focused)
Thx!!!