- Qt 6.8
- Qt Graphs
- C++ Classes
- QtGraphs
- QGraphTheme
- Qt Graphs | Commercial or GPLv3

# QGraphTheme Class

The QGraphTheme class handles theming of the graph. More...

Header: | #include <QGraphTheme>
CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: | QT += graphs
Instantiated By: | GraphTheme
Inherits: | QObject and QQmlParserStatus

- List of all members, including inherited members
- QGraphTheme is part of Qt Graphs C++ Classes for 2D.

## Public Functions

QColor | axisXLabelsColor() const
QFont | axisXLabelsFont() const
qreal | axisXMajorBarWidth() const
QColor | axisXMajorColor() const
qreal | axisXMinorBarWidth() const
QColor | axisXMinorColor() const
qreal | axisXSmoothing() const
QColor | axisYLabelsColor() const
QFont | axisYLabelsFont() const
qreal | axisYMajorBarWidth() const
QColor | axisYMajorColor() const
qreal | axisYMinorBarWidth() const
QColor | axisYMinorColor() const
qreal | axisYSmoothing() const
QGraphTheme::ColorTheme | colorTheme() const
QColor | gridMajorBarsColor() const
qreal | gridMajorBarsWidth() const
QColor | gridMinorBarsColor() const
qreal | gridMinorBarsWidth() const
qreal | gridSmoothing() const
void | setAxisXLabelsColor(const QColor &newAxisXLabelsColor)
void | setAxisXLabelsFont(const QFont &newAxisXLabelsFont)
void | setAxisXMajorBarWidth(qreal newAxisXMajorBarWidth)
void | setAxisXMajorColor(const QColor &newAxisXMajorColor)
void | setAxisXMinorBarWidth(qreal newAxisXMinorBarWidth)
void | setAxisXMinorColor(const QColor &newAxisXMinorColor)
void | setAxisXSmoothing(qreal newAxisXSmoothing)
void | setAxisYLabelsColor(const QColor &newAxisYLabelsColor)
void | setAxisYLabelsFont(const QFont &newAxisYLabelsFont)
void | setAxisYMajorBarWidth(qreal newAxisYMajorBarWidth)
void | setAxisYMajorColor(const QColor &newAxisYMajorColor)
void | setAxisYMinorBarWidth(qreal newAxisYMinorBarWidth)
void | setAxisYMinorColor(const QColor &newAxisYMinorColor)
void | setAxisYSmoothing(qreal newAxisYSmoothing)
void | setColorTheme(const QGraphTheme::ColorTheme &newColorTheme)
void | setGridMajorBarsColor(const QColor &newGridMajorBarsColor)
void | setGridMajorBarsWidth(qreal newGridMajorBarsWidth)
void | setGridMinorBarsColor(const QColor &newGridMinorBarsColor)
void | setGridMinorBarsWidth(qreal newGridMinorBarsWidth)
void | setGridSmoothing(qreal newGridSmoothing)
void | setShadowBarWidth(qreal newShadowBarWidth)
void | setShadowColor(const QColor &newShadowColor)
void | setShadowEnabled(bool newShadowEnabled)
void | setShadowSmoothing(qreal newShadowSmoothing)
void | setShadowXOffset(qreal newShadowXOffset)
void | setShadowYOffset(qreal newShadowYOffset)
qreal | shadowBarWidth() const
QColor | shadowColor() const
bool | shadowEnabled() const
qreal | shadowSmoothing() const
qreal | shadowXOffset() const
qreal | shadowYOffset() const

## Signals

void | axisXLabelsColorChanged()
void | axisXLabelsFontChanged()
void | axisXMajorBarWidthChanged()
void | axisXMajorColorChanged()
void | axisXMinorBarWidthChanged()
void | axisXMinorColorChanged()
void | axisXSmoothingChanged()
void | axisYLabelsColorChanged()
void | axisYLabelsFontChanged()
void | axisYMajorBarWidthChanged()
void | axisYMajorColorChanged()
void | axisYMinorBarWidthChanged()
void | axisYMinorColorChanged()
void | axisYSmoothingChanged()
void | colorThemeChanged()
void | gridMajorBarsColorChanged()
void | gridMajorBarsWidthChanged()
void | gridMinorBarsColorChanged()
void | gridMinorBarsWidthChanged()
void | gridSmoothingChanged()
void | shadowBarWidthChanged()
void | shadowColorChanged()
void | shadowEnabledChanged()
void | shadowSmoothingChanged()
void | shadowXOffsetChanged()
void | shadowYOffsetChanged()

## Detailed Description

Graph theme handles grid, axis and shadow properties. Grid and axes are divided to major and minor bars and ticks. Major bars and ticks are located on the values for ValueAxis and between categories for CategoryAxis. Minor bars and ticks are located between the major ones.