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.
我正在尝试使标准的Qt 条形图示例可滚动和可缩放。我可以使用滚动和缩放方法QChart来定义一个自定义图表视图类,以重新实现不同的鼠标事件。但是,使用这种技术,可以滚动超出类别范围。
QChart
如果我可以在“图表空间”中获得 y 轴上的最小最大值,这将是一个简单的修复,但我猜因为 y 轴是QBarCategoryAxis唯一可用的方法返回最小最大值类别的字符串。
QBarCategoryAxis
每次搜索我为QValueAxisapi 提出的返回结果时,我都不知所措。
QValueAxis