QLogValueAxis Class

The QLogValueAxis class is used for manipulating chart's axis. More...

Header: #include <QLogValueAxis>
Instantiated By: LogValueAxis
Inherits: QAbstractAxis

Properties

Public Functions

QLogValueAxis(QObject *parent = Q_NULLPTR)
~QLogValueAxis()
qreal base() const
QString labelFormat() const
qreal max() const
qreal min() const
void setBase(qreal base)
void setLabelFormat(const QString &format)
void setMax(qreal max)
void setMin(qreal min)
void setRange(qreal min, qreal max)

Reimplemented Public Functions

virtual AxisType type() const

Signals

void baseChanged(qreal base)
void labelFormatChanged(const QString &format)
void maxChanged(qreal max)
void minChanged(qreal min)
void rangeChanged(qreal min, qreal max)

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QLogValueAxis class is used for manipulating chart's axis.

Note: If a QLogValueAxis is attached to a series with one or more points with negative or zero values on the associated dimension, the series will not be plotted at all. This is particularly relevant when XYModelMappers are used, since empty cells in models typically contain zero values.

Property Documentation

base : qreal

Defines the base of the logarithm. Value has to be greater than 0 and not equal 1

Access functions:

qreal base() const
void setBase(qreal base)

Notifier signal:

void baseChanged(qreal base)

labelFormat : QString

Defines the label format of the axis. Supported specifiers are: d, i, o, x, X, f, F, e, E, g, G, c See QString::sprintf() for additional details.

Access functions:

QString labelFormat() const
void setLabelFormat(const QString &format)

Notifier signal:

void labelFormatChanged(const QString &format)

max : qreal

Defines the maximum value on the axis. When setting this property the min is adjusted if necessary, to ensure that the range remains valid. Value has to be greater than 0.

Access functions:

qreal max() const
void setMax(qreal max)

Notifier signal:

void maxChanged(qreal max)

min : qreal

Defines the minimum value on the axis. When setting this property the max is adjusted if necessary, to ensure that the range remains valid. Value has to be greater than 0.

Access functions:

qreal min() const
void setMin(qreal min)

Notifier signal:

void minChanged(qreal min)

Member Function Documentation

QLogValueAxis::QLogValueAxis(QObject *parent = Q_NULLPTR)

Constructs an axis object which is a child of parent.

QLogValueAxis::~QLogValueAxis()

Destroys the object

[signal] void QLogValueAxis::baseChanged(qreal base)

Axis emits signal when base of logarithm of the axis has changed.

Note: Notifier signal for property base.

[signal] void QLogValueAxis::labelFormatChanged(const QString &format)

Axis emits signal when format of axis labels has changed.

Note: Notifier signal for property labelFormat.

[signal] void QLogValueAxis::maxChanged(qreal max)

Axis emits signal when max of axis has changed.

Note: Notifier signal for property max.

[signal] void QLogValueAxis::minChanged(qreal min)

Axis emits signal when min of axis has changed.

Note: Notifier signal for property min.

[signal] void QLogValueAxis::rangeChanged(qreal min, qreal max)

Axis emits signal when min or max of axis has changed.

void QLogValueAxis::setRange(qreal min, qreal max)

Sets range from min to max on the axis. If min is greater than max then this function returns without making any changes.

[virtual] AxisType QLogValueAxis::type() const

Reimplemented from QAbstractAxis::type().

Returns the type of the axis

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.