There are a couple of ways. But the easiest way I can think of is this:
* In your custom dialog, define a few public functions for retrieving the data.
* Use the return value of exec() to see if the user clicked Cancel or OK.
* Don't destroy the dialog object yet (make sure it doesn't have the Qt::WA_DeleteOnClose attribute activated). Use its public functions to get the data.
Bookmarks