PDA

View Full Version : TableView navigate signal/event



skuda
25th January 2008, 15:19
Hello all,
i have a tableview with a custom model and a qlabel (outside the table) showing a pixmap on each line load, i have done emitting a signal from the model to change the pixmap with the new data from database, but when the user navigate (with the keyboard) to the old rows i cant find a way to know it and change the pixmap to the correct pixmap for that old line (i have all the line pixmaps in a object inside the model), i have searched the signals from qabstractitemview but i cant find one that notify me about this. how could have this done? Thanks in advance.

jpn
25th January 2008, 15:20
See QItemSelectionModel. It's accessible via QAbstractItemView::selectionModel().

skuda
25th January 2008, 15:52
wow what a fast and correct reply, many thanks jpn