Qt 6.11 is out! See what's new in the release
blog
Can I change the axis range of the QChart
-
QValueAxis *axisX = new QValueAxis; axisX->setRange(0, 8000); axisX->setLabelFormat("%g");I can change the range in the program,Can I change it in the widget in run time?
Can I change it in the widget in run time?
Some thing like this, widget some where in GUI and set value there and give it to axis ? then yes, you can change the range in the run time. USe QSpinBox / equivalent widget and pass the vale of the QSpinBox / equivalent widget using the signal and slot.
-
QValueAxis *axisX = new QValueAxis; axisX->setRange(0, 8000); axisX->setLabelFormat("%g");I can change the range in the program,Can I change it in the widget in run time?