Opening a dialog from the main window menu and I need to pass a QSqlRecord to it.
I have the record value, and I suspect the answer is signals & slots.
I can make the slot in the dialog, but what would the signal from the main window be?
I'm still having trouble grasping the full power of signals & slots.

Here is what I have so far.

Qt Code:
  1. void MainWindow::on_actionEdit_Log_Entry_triggered()
  2. {
  3. if (::open_log != "") {
  4. QModelIndex index = view->currentIndex();
  5. QSqlRecord record;
  6. int i = index.row();
  7. record = model->record(i);
  8. qDebug() << "record is " << record; // record looks good, need to pass it.
  9. EditLog *edit = new EditLog(this);
  10. edit->show();
  11. }else{
  12. QMessageBox::information(this, "Edit Log", tr("A log must be open to edit it."));
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 

Any help please?