I am trying to create a main window and QDialog and find the best way to return data from QDialog
.
Now I pick up the accepted()
signal in the dialog box, after which I call the dialog function that returns the data. Is there a better way?
Here is the working code that I now have:
class MainWindow : public QMainWindow {
And Dialog:
class Dialog : public QDialog {
It looks dirty. Is there a better design? Did I miss something?
source share