Hi QT experts,
I have created a dialog using QDialogButtonBox, and now I'd like to connect it to the window. I have two beginner's questions:

  • How can I retrieve how the dialog was closed (ok pressed or cancel pressed) from the window.cpp, which creates a new dialog, and then calls dialog->show() ?
  • Where I have to destroy the dialog pointer ?and how to destroy it???