1 void getPoint(QwtPlot *plot)
2 {
3       QPoint point = plot->canvas()->mapFromGlobal(QCursor::pos());   
4       QString info.sprintf("x = %g, y = %g",
5                      plot ->invTransFrom(Qwtplot::xBottom,point.x()),
6                      plot ->invTransFrom(Qwtplot::yLeft,point.y() 
7                       );   
8 }                    
Qwt获取坐标

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2022-01-12
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案