I have a QDialogButtonBox:
QDialogButtonBox buttonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog);
And when user presses the Ok
button I want to call a slot, which has 2 QString
arguments. I was trying to use signals, but I cannot make it work.
I have tried to do something like this:
connect(buttonBox, &QDialogButtonBox::accepted, this,
App::replace);
App::replace
is the slot I want to call, but I do not know how to pass the arguments.
How can I achieve that?