PDA

View Full Version : Newbie question on QTreeView and QDirModel selected Items



jimroos
15th March 2007, 21:22
All,

I'm new to QT (using version 4.2.3) and have what I hope is a basic question. I've implemented a File Chooser using QTreeView and QDirModel. I've enabled Continuous selection Mode. My question is how do I efficiently get a listing of the files that have been highlighted by the user. I need an efficent method because I maybe working with a few or many selected files out of thousands of files.

Thanks in advance!

Jim Roos

jpn
15th March 2007, 21:45
In short: QAbstractItemView::selectionModel() :)