I have a database with table X: let's call it `clients`. I also have a form related to editing table X contents. It may open it on it's own (to browse/edit) as well as from other forms when it is necessary to "pick" a record from table X. 

How do I go about telling the parent that a particular `QModelIndex` has been picked straight out of `on_tableView_doubleClicked(const QModelIndex &index)` signal handler?

Currently, I had only one "dad" form, so I knew which type of pointer to put in child form (so it can hold a pointer to parent) and just casted a pointer of it's type.

```
if (parent) daddy = qobject_cast<InvoiceEd*>(parent);

```

Now I want to add a call from another form, I realized that I have to cast different pointer out of `QWidget*` pointer, and I don't know how to determine what's "in disguise" under `QWidget* parent` pointer. How can I do that?