QT 實時顯示鼠標所指的座標 && 監測鍵盤事件

1 捕獲鼠標事件 void EventLabel::mouseMoveEvent(QMouseEvent *event) { QString msg; msg.sprintf("move: %d,%d",event->x(), event->y()); this->setText(msg); } void EventLabel::mousePressEvent(QMouse
相關文章
相關標籤/搜索