void MainWindow::buttonPushed() { QPushButton *button = (QPushButton*)sender(); emit numberEmitted(button -> text()[0].digitValue()); value +=QString::number(button -> text()[0].digitValue()); label -> setText(value); }
void MainWindow::buttonPushed() { QPushButton *button = (QPushButton *)sender(); emit numberEmitted(button->text()[0].digitValue()); addNumber(QString::number(button->text()[0].digitValue())); }