PDA

View Full Version : QFileSystemModel problems with selection



realdarkman71
30th May 2011, 15:11
Hi all,

I have a QTableView with a QFileSystemModel. After directory are loaded I select a row in the connected slot:


connect(model, SIGNAL(directoryLoaded(QString)), this, SLOT(model_directoryLoaded(QString)));

(...)

void MyClass::model_directoryLoaded(const QString path) {
tableView->selectRow(5);
}

But another row will be selected, sometimes none row is selected! Can anyone explain this strange behavior?

Thx!
Chris