I have MainWIndow. From that window i create dialog Window with table.
Qt Code:
  1. WideSearch* wWideSearch=new WideSearch;
  2. wWideSearch->setSourceModel (createRecordModel(wWideSearch));
  3. wWideSearch->show();
  4. wWideSearch->raise();
  5. wWideSearch->activateWindow()
To copy to clipboard, switch view to plain text mode 
On double click on table i need close dialog Window and send data from QModelIndex to mainWindow. With closing second form there is no problem,but i don't know how send data back to mainWindow?