QTradingView 1.0.0
A high-performance charting library built with C++ and Qt.
Loading...
Searching...
No Matches
QTradingView::ChartTheme Class Reference

Defines the color and font theme for chart rendering. More...

#include <ChartTheme.h>

Public Member Functions

 ChartTheme ()
 Constructs a ChartTheme with default settings.
 

Static Public Member Functions

static ChartTheme tradingViewDark ()
 Returns a predefined dark theme similar to TradingView.
 
static ChartTheme tradingViewLight ()
 Returns a predefined light theme similar to TradingView.
 
static ChartTheme dark ()
 Returns a generic dark theme.
 
static ChartTheme light ()
 Returns a generic light theme.
 

Public Attributes

QColor backgroundColor
 
QColor chartBackgroundColor
 
QColor gridColor
 
QColor borderColor
 
QColor paneBorderColor
 
QColor axisTextColor
 
QColor axisBackgroundColor
 
QColor crosshairColor
 
QColor textColor
 
QFont textFont
 
QColor defaultSeriesColor
 

Detailed Description

Defines the color and font theme for chart rendering.

ChartTheme provides color and font settings for chart backgrounds, grids, axes, crosshairs, and series.

Member Function Documentation

◆ dark()

ChartTheme QTradingView::ChartTheme::dark ( )
static

Returns a generic dark theme.

Returns
ChartTheme instance with dark colors.

◆ light()

ChartTheme QTradingView::ChartTheme::light ( )
static

Returns a generic light theme.

Returns
ChartTheme instance with light colors.

◆ tradingViewDark()

ChartTheme QTradingView::ChartTheme::tradingViewDark ( )
static

Returns a predefined dark theme similar to TradingView.

Returns
ChartTheme instance with dark colors.

◆ tradingViewLight()

ChartTheme QTradingView::ChartTheme::tradingViewLight ( )
static

Returns a predefined light theme similar to TradingView.

Returns
ChartTheme instance with light colors.

The documentation for this class was generated from the following files: