Hi all,

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

Qt Code:
  1. connect(model, SIGNAL(directoryLoaded(QString)), this, SLOT(model_directoryLoaded(QString)));
  2.  
  3. (...)
  4.  
  5. void MyClass::model_directoryLoaded(const QString path) {
  6. tableView->selectRow(5);
  7. }
To copy to clipboard, switch view to plain text mode 

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

Thx!
Chris