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); 
- } 
        connect(model, SIGNAL(directoryLoaded(QString)), this, SLOT(model_directoryLoaded(QString)));
(...)
void MyClass::model_directoryLoaded(const QString path) {
    tableView->selectRow(5);
}
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
				
			
Bookmarks