if (event->pos().x() < m_pPlotWidget->yAxis->axisRect()->left() || event->pos().x() > m_pPlotWidget->yAxis2->axisRect()->right()
|| event->pos().y() < m_pPlotWidget->yAxis->axisRect()->top() || event->pos().y() > m_pPlotWidget->yAxis->axisRect()->bottom())
{
//操作
return;
}
Qt QCustomPlot 判断鼠标是否在区域内
最新推荐文章于 2023-12-10 10:00:00 发布