C++ (Qt)int timerId = 0;.................timerId = startTimer (100);......................if (timerId) { killTimer (timerId); timerId = 0;}