Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我按下右键单击按钮时,它会缩小一点,而我想在按下右键单击时恢复 QChart 的初始位置。有没有办法做到这一点?
我认为您应该将图表视图的橡皮筋设置为“否”,以便它对您的定位做出反应,但不进行缩放。
setRubberBand(QChartView::NoRubberBand);