2011-12-05 4 views

答えて

0

あなたが特定の選択に興味があるなら、あなたは、リスト内のすべてのQModelIndexために次のことを行う必要があります。

QFileSystemModel* p_fs_model; 
... 
foreach(QModelIndex index, whole_selection) 
{ 
    QModelIndex first_column_index = p_fs_model->index(
     index->row(), 
     0, /* first column index */ 
     index->parent() 
); 
    ... 
}