Search code examples
qtqtcharts

QtChart get axis range


I could set the current axis range in a QtChart via:

chart()->axisX()->setRange(min,max);

What is the equivalent to get the current axis range?


Solution

  • QAbstractAxis only have a setter but all his children have access functions.

    Example : QLogValueAxis::min(); QLogValueAxis::max();