摘要: 常用操作 判断鼠标按下了哪个键 void Win::mousePressEvent(QMouseEvent *e) { if(e->button() == Qt::LeftButton) //如果鼠标按下的键是左键 //e->button() 返回鼠标当时按下的键--触发事件的键 { qDebug( 阅读全文
posted @ 2020-09-24 09:15 天子骄龙 阅读(1163) 评论(0) 推荐(0)