QtCharts::QtValueAxis setRange function fails for small numbers. For example:
QtCharts::QValueAxis* axisX = new QtCharts::QValueAxis();
axisX->setRange(-1e-12,1e-13);
qDebug() << axisX->min() << axisX->max();
produces a couple of zeros (0 0).
| For Gerrit Dashboard: QTBUG-56097 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 171885,1 | Removed qFuzzyCompare when comparing with zero | 5.7 | qt/qtcharts | Status: ABANDONED | -1 | 0 |
| 203238,3 | Account for very small numbers when setting the range | 5.9 | qt/qtcharts | Status: MERGED | +2 | 0 |