右键拖动Ctrl+F搜索void QCPAxisRect::mousePressEvent(QMouseEvent *event) 函数圆形如下: 把Qt::LeftButton改为Qt::RightButton void QCPAxisRect::mousePressEvent(QMouseEvent *event){mDragStart = event->pos(); // need t