PDA

View Full Version : Fetching rows in QtreeView



visor_ua
5th July 2008, 10:30
QTreeView has possibility to set current row by pressing beginning of string which in first column ( in basicsortfilter example, after pressing 'R' , current row will be set to row with first character 'R' in column(0).
Can i change column number for this quick search?

caduel
5th July 2008, 14:08
skimming quickly over the Qt source (QAbstractItemView::keyboardSearch()) I would say that you can not influence that column.

Check for yourself, that's why you got the sources of Qt! ;)

HTH

jpn
5th July 2008, 18:17
Notice that QAbstractItemView::keyboardSearch() is virtual.