There are several options:
1. Create the search object on the heap and retrieve the values from it later.
2. Store the results in class members after the search dialog is done. Then when it goes out of scope you will have saved the important data you may need for later.