Basically i\'m making a simple calculator program to understand the basics of C++ GUI however I get an error message leading to the line of code I have in the void Mai
void Mai
This should work..
label -> setText(QString::number(c));
If you need to add multiple number inside some string you can try below..
label -> setText(QString("%1").arg(c));