[Interest] QTreeView / QTableView row change

2013-11-08 Thread Joseph W. Joshua
Hi All, Is it possible to detect when a QTreeView / QTableView row is changed? An example is when the user changes the current row using keyboard navigation. Josh. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QTreeView / QTableView row change

2013-11-08 Thread Scott Aron Bloom
Of Joseph W. Joshua Sent: Friday, November 8, 2013 2:21 AM To: interest@qt-project.org Subject: [Interest] QTreeView / QTableView row change Hi All, Is it possible to detect when a QTreeView / QTableView row is changed? An example is when the user changes the current row using keyboard

Re: [Interest] QTreeView / QTableView row change

2013-11-08 Thread Clément Geiger
Hi, So you mean, detect when the current row in a view is changed, not when the row content in the model is changed. Then you're looking for the currentChanged signal in QItemSelectionModel (you can get the selection model from the view via QAbstractItemView::selectionModel()) Cheers, Clément

Re: [Interest] QTreeView / QTableView row change

2013-11-08 Thread Joseph W. Joshua
On 11/8/2013 1:26 PM, Clément Geiger wrote: Hi, So you mean, detect when the current row in a view is changed, not when the row content in the model is changed. Then you're looking for the currentChanged signal in QItemSelectionModel (you can get the selection model from the view via