Hi,
i have two question:

First i have the following code (from a example) and i'm not sure why this works:

Qt Code:
  1. Dialog *d = new Dialog(this);
  2. d->deleteLater();
  3. d->exec();
  4.  
  5. d->getSomething();
To copy to clipboard, switch view to plain text mode 

I thought that deleteLater() will remove d after leaving the dialog, but the methode getSomething() still works I'm sure its only a little misunderstanding. Could you explain me this?

Second i leave this dialog with a button which is connected to the dialog's close() slot. Is this the right way?

greetings,
kei