diff --git a/my_dialog.cpp b/my_dialog.cpp index d106dea..64052b1 100644 --- a/my_dialog.cpp +++ b/my_dialog.cpp @@ -6,7 +6,12 @@ my_dialog::my_dialog(QWidget *parent) noexcept : ui(new Ui::my_dialog) { ui->setupUi(this); - connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(close())); + connect( + ui->pushButton, + &QPushButton::clicked, + this, + &my_dialog::close + ); } my_dialog::~my_dialog() noexcept