i want two table views , one is for tabling files in a dir, second one is for real time adding of selected files. i think i need some modification in here

QStringListModel *model2 = new QStringListModel();
QStringList list;
list << selectedtext ;
model2->setStringList(list);

thank you