QAbstract3DAxis Class
La clase QAbstract3DAxis es una clase base para los ejes de un gráfico. Más...
| Cabecera: | #include <QAbstract3DAxis> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization)target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| Desde: | QtDataVisualization 1.0 |
| En QML: | AbstractAxis3D |
| Hereda de: | QObject |
| Heredado de: |
Tipos públicos
| enum | AxisOrientation { AxisOrientationNone, AxisOrientationX, AxisOrientationY, AxisOrientationZ } |
| enum | AxisType { AxisTypeNone, AxisTypeCategory, AxisTypeValue } |
Propiedades
|
|
Funciones públicas
| virtual | ~QAbstract3DAxis() |
| bool | isAutoAdjustRange() const |
| bool | isTitleFixed() const |
| bool | isTitleVisible() const |
| float | labelAutoRotation() const |
| QStringList | labels() const |
| float | max() const |
| float | min() const |
| QAbstract3DAxis::AxisOrientation | orientation() const |
| void | setAutoAdjustRange(bool autoAdjust) |
| void | setLabelAutoRotation(float angle) |
| void | setLabels(const QStringList &labels) |
| void | setMax(float max) |
| void | setMin(float min) |
| void | setRange(float min, float max) |
| void | setTitle(const QString &title) |
| void | setTitleFixed(bool fixed) |
| void | setTitleVisible(bool visible) |
| QString | title() const |
| QAbstract3DAxis::AxisType | type() const |
Señales
| void | autoAdjustRangeChanged(bool autoAdjust) |
| void | labelAutoRotationChanged(float angle) |
| void | labelsChanged() |
| void | maxChanged(float value) |
| void | minChanged(float value) |
| void | orientationChanged(QAbstract3DAxis::AxisOrientation orientation) |
| void | rangeChanged(float min, float max) |
| void | titleChanged(const QString &newTitle) |
| void | titleFixedChanged(bool fixed) |
| void | titleVisibilityChanged(bool visible) |
Descripción detallada
Esta clase especifica las enumeraciones, propiedades y funciones compartidas por los ejes gráficos. No debe utilizarse directamente, sino una de sus subclases.
Véase también QCategory3DAxis y QValue3DAxis.
Documentación de tipos de miembros
enum QAbstract3DAxis::AxisOrientation
La orientación del objeto eje.
| Constante | Valor |
|---|---|
QAbstract3DAxis::AxisOrientationNone | 0 |
QAbstract3DAxis::AxisOrientationX | 1 |
QAbstract3DAxis::AxisOrientationY | 2 |
QAbstract3DAxis::AxisOrientationZ | 4 |
enum QAbstract3DAxis::AxisType
Tipo del objeto eje.
| Constante | Valor |
|---|---|
QAbstract3DAxis::AxisTypeNone | 0 |
QAbstract3DAxis::AxisTypeCategory | 1 |
QAbstract3DAxis::AxisTypeValue | 2 |
Propiedad Documentación
autoAdjustRange : bool
Esta propiedad mantiene si el eje ajustará automáticamente el rango para que todos los datos quepan en él.
Funciones de acceso:
| bool | isAutoAdjustRange() const |
| void | setAutoAdjustRange(bool autoAdjust) |
Señal notificador:
| void | autoAdjustRangeChanged(bool autoAdjust) |
Véase también setRange(), setMin(), y setMax().
labelAutoRotation : float
Esta propiedad contiene el ángulo máximo que las etiquetas pueden autorotar cuando cambia el ángulo de la cámara.
El ángulo puede estar entre 0 y 90, ambos inclusive. El valor por defecto es 0. Si el valor es 0, las etiquetas de los ejes no rotan automáticamente. Si el valor es mayor que cero, las etiquetas intentan orientarse hacia la cámara, hasta el ángulo especificado.
Funciones de acceso:
| float | labelAutoRotation() const |
| void | setLabelAutoRotation(float angle) |
Señal del notificador:
| void | labelAutoRotationChanged(float angle) |
labels : QStringList
Esta propiedad contiene las etiquetas para el eje.
Nota: Establecer esta propiedad para QValue3DAxis no hace nada, ya que genera las etiquetas automáticamente.
Funciones de acceso:
| QStringList | labels() const |
| void | setLabels(const QStringList &labels) |
Señal del notificador:
| void | labelsChanged() |
max : float
Esta propiedad contiene el valor máximo del eje.
Cuando se establece esta propiedad, el valor mínimo se ajusta si es necesario, para asegurar que el rango sigue siendo válido.
Nota: Para QCategory3DAxis, especifica el índice de la última fila o columna a mostrar.
Funciones de acceso:
| float | max() const |
| void | setMax(float max) |
Señal del notificador:
| void | maxChanged(float value) |
min : float
Esta propiedad contiene el valor mínimo del eje.
Cuando se establece esta propiedad, el valor máximo se ajusta si es necesario, para asegurar que el rango sigue siendo válido.
Nota: Para QCategory3DAxis, especifica el índice de la primera fila o columna a mostrar.
Funciones de acceso:
| float | min() const |
| void | setMin(float min) |
Señal del notificador:
| void | minChanged(float value) |
[read-only] orientation : AxisOrientation
Esta propiedad contiene la orientación del eje.
El valor es uno de los valores de AxisOrientation.
Funciones de acceso:
| QAbstract3DAxis::AxisOrientation | orientation() const |
Señal del notificador:
| void | orientationChanged(QAbstract3DAxis::AxisOrientation orientation) |
title : QString
Esta propiedad contiene el título del eje.
Funciones de acceso:
| QString | title() const |
| void | setTitle(const QString &title) |
Señal del notificador:
| void | titleChanged(const QString &newTitle) |
Véase también titleVisible y titleFixed.
titleFixed : bool
Esta propiedad contiene la rotación de los títulos de los ejes.
Si true, los títulos de los ejes en la vista del gráfico primario se rotarán hacia la cámara de forma similar a las etiquetas de los ejes. Si false, los títulos de los ejes sólo se rotan alrededor de su eje pero no se orientan hacia la cámara. Esta propiedad no tiene ningún efecto si el valor de la propiedad labelAutoRotation es cero. El valor por defecto es true.
Funciones de acceso:
| bool | isTitleFixed() const |
| void | setTitleFixed(bool fixed) |
Señal notificadora:
| void | titleFixedChanged(bool fixed) |
Véase también labelAutoRotation, title, y titleVisible.
titleVisible : bool
Esta propiedad indica si el título del eje es visible en la vista del gráfico primario.
El valor por defecto es false.
Funciones de acceso:
| bool | isTitleVisible() const |
| void | setTitleVisible(bool visible) |
Señal del notificador:
| void | titleVisibilityChanged(bool visible) |
Véase también title y titleFixed.
[read-only] type : const AxisType
Esta propiedad contiene el tipo de eje.
El valor es uno de los valores de AxisType.
Funciones de acceso:
| QAbstract3DAxis::AxisType | type() const |
Documentación de funciones miembro
[virtual noexcept] QAbstract3DAxis::~QAbstract3DAxis()
Destruye QAbstract3DAxis.
[signal] void QAbstract3DAxis::rangeChanged(float min, float max)
Emite los valores mínimo y máximo del rango, min y max, cuando el rango cambia.
void QAbstract3DAxis::setRange(float min, float max)
Establece el rango de valores del eje de min a max. Al establecer el rango, el valor máximo se ajusta si es necesario, para garantizar que el rango sigue siendo válido.
Nota: Para QCategory3DAxis, especifica el rango de índice de filas o columnas a mostrar.
© 2026 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.