I have a QT App and have currently added a new QPushButton. I have connected the button properly with:
QObject::connect(ui->myButton, SIGNAL(clicked()), this, SLOT(SendResetEchoRequest()));
Most of the time it is working when i click it calls the function. But sometimes it doesn't register my click. Sometimes i need up to 5-10 clicks to make the function fire once and i don't know why.
To be sure this is a problem with the Button / Click i have tried using the function on key UP like this:
if(GetAsyncKeyState(VK_UP)){
SendResetEchoRequest();
}
This works 100% perfectly fine. And when i press my UP key it triggers the function.
Anybody got an idea why sometimes it doesn't register my click?