#include "basicsettingwindow.h" #include "ui_basicsettingwindow.h" #include "soundplayer.h" BasicSettingWindow::BasicSettingWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::BasicSettingWindow) { ui->setupUi(this); foreach (QPushButton *button, findChildren()) connect(button, &QPushButton::pressed, SoundPlayer::playClick); } BasicSettingWindow::~BasicSettingWindow() { delete ui; }