[Qt-interest] finding out when a cell has been edited.
Marcos Dione
mdione at grulic.org.ar
Thu Dec 17 23:07:10 CET 2009
I have a QAbstractTableModel and connected to it a QTableView. I want to
find out when a cell has been edited. now, I know there's the dataChanged
signal, but it doesn't say which role has changed. I'm already changing the
back/fore roles of rows of cells for (de)highlighting them, and this signal is
emited in this case too. I want to execute some code only when the signal has
been emited when the DisplayRole has changed, not in the other cases. the
signal does not carry this info. the code in question needs also to access the
view's selection. the ultimate goal is to allow the user to select a series of
cells, edit one and copy that text into the other selected cells. is there any
way to figure out?
--
(Not so) Random fortune:
A hacker does for love what others would not do for money.
More information about the Qt-interest-old
mailing list