hi i do this code:
Qt Code:
QModelIndexList modelindex; QVariant data; modelindex=sel->selectedIndexes(); int i=0; QList<QModelIndex> index(modelindex); for(i=0; i<index.size();++i){ char *pr = bytArr.data(); char *pr2 = bytArr2.data(); cout << i << "child:::" << pr << "---parent:::" << pr2 << endl; }To copy to clipboard, switch view to plain text mode
why if i selected 5 different item in different folder
the parent is the first selected item ????????
exemple:
i select
x.jpg ---> image
and
y.jpg ---> img
output:
child:::x.jpg---parent:::image
child:::y.jpg---parent:::image
Bookmarks