Thank you so much for the help!
double number_1 = ui->doubleSpinBox->value();
double number_3 = ui->lineEdit->text().toDouble();
double res = number_1*number_3;
ui->label_7->setText(r);
double number_1 = ui->doubleSpinBox->value();
double number_3 = ui->lineEdit->text().toDouble();
double res = number_1*number_3;
QString r = QString::number(res);
ui->label_7->setText(r);
To copy to clipboard, switch view to plain text mode
This works awesome! The only problem I have is that I want to display the result dynamically. I have already tried to do this by using Signals/Slots, but unfortunately I failed. Can someone give me a hint how to actually do this?
Thanks.
Bookmarks