Bush button adds value

i have a project using qt/arduino
i need a code to enable me to add a values x using a button

Hello dali88

Post your current sketch, well commented and in code tags, to see how we can help.

hello paul thank you for your concern
i didnt fully understand so bare with me x)
my project is client management in a travel agency
the fonction is a button that adds loyalty points
what do you mean exactly by sketch?

You wrote that you have a project using arduino. Arduino programs are calling "sketch".
Please show your arduino code.

const int buttonPin = 2; // the number of the pushbutton pin

// variables will change:
int buttonState = 0; // variable for reading the pushbutton status

void setup() {

// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}

void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed. If it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// value x changes:
....
} else {
// x doesn't change :
....
}
}

Did you test it? It works?

and you current question is ?

i need a qt code that adds value x for exemple everytime i push the button

is it possible or im i in the wrong forum to ask?
its my first time here

I´m not familar with "qt code ".

I wish a nice day and have fun.

i couldn't test it cuz its not completed

I suspect so

okay thank you
you too have a nice day

do you know a website where it is possible?

sorry, no

So we are straight up running beginners off now?
Their code was obviously arduino and qt is a line of tiny SamD boards from Adafruit
Hopefully they will come back.

The original question was so badly formed, I thought it had something to do with qt (quicktime).

OP obviously hadn’t read the forum guidelines, so as usual - the more effort you put in, the more effort we can put in.

As I understood , OP asked about programming with widely known QT Framework by Trolltech

Agreed, but the code they posted(incorrectly) was certainly enough to know it was an Arduino