C++ (Qt)#define private public#include <QThread> QThread::msleep(5000);
C++ (Qt)void Form_comp::mousePressEvent( QMouseEvent *mouseEvent ) { if(set_Action != 2) {Beep(4000, 500); return;} set_Action = 0; mouse_x = mouseEvent->x() / 25; mouse_y = mouseEvent->y() / 25; emit processGame(); return; }
C++ (Qt)if(set_Action != 2) {Beep(4000, 500); return;}