jryans10 0 Newbie Poster

Hi,

I've currently got a dilema.

I'm aware that from within a C++ program, you can use return values to get data from a function, but I am currently developing a Qt program, and at the moment I have 2 GUI's:

1- Main Window
2- Dialog

The main window calls the dialog, but I need the dialog to send data back to the main window. These are 2 separate C++ files, how exactly can I go abouts doing this? I've considered possibly writing to a file and reading from it but surely there's a more efficient way?

Thanks, hope my question was clear.