PDA

View Full Version : SEnding data between forms



core_st
28th January 2011, 22:00
I have MainWIndow. From that window i create dialog Window with table.

WideSearch* wWideSearch=new WideSearch;
wWideSearch->setSourceModel (createRecordModel(wWideSearch));
wWideSearch->show();
wWideSearch->raise();
wWideSearch->activateWindow()
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?

high_flyer
31st January 2011, 10:23
Have a look at signals and slots.
http://doc.trolltech.com/4.7/signalsandslots.html