QCandlestickSet Class

The QCandlestickSet class represents a single candlestick item in a candlestick chart. More...

Header: #include <QCandlestickSet>
Since: Qt 5.8
Instantiated By: CandlestickSet
Inherits: QObject

Properties

  • 1 property inherited from QObject

Public Functions

QCandlestickSet(qreal timestamp = 0.0, QObject *parent = nullptr)
QCandlestickSet(qreal open, qreal high, qreal low, qreal close, qreal timestamp = 0.0, QObject *parent = nullptr)
virtual ~QCandlestickSet()
QBrush brush() const
qreal close() const
qreal high() const
qreal low() const
qreal open() const
QPen pen() const
void setBrush(const QBrush &brush)
void setClose(qreal close)
void setHigh(qreal high)
void setLow(qreal low)
void setOpen(qreal open)
void setPen(const QPen &pen)
void setTimestamp(qreal timestamp)
qreal timestamp() const
  • 34 public functions inherited from QObject

Signals

void brushChanged()
void clicked()
void closeChanged()
void doubleClicked()
void highChanged()
void hovered(bool status)
void lowChanged()
void openChanged()
void penChanged()
void pressed()
void released()
void timestampChanged()

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QCandlestickSet class represents a single candlestick item in a candlestick chart.

Five values are needed to create a graphical representation of a candlestick item: open, high, low, close, and timestamp. These values can be either passed to a QCandlestickSet constructor or set by using setOpen(), setHigh(), setLow(), setClose(), and setTimestamp().

See also QCandlestickSeries.

Property Documentation

brush : QBrush

This property holds the brush used to fill the candlestick item.

Access functions:

QBrush brush() const
void setBrush(const QBrush &brush)

Notifier signal:

void brushChanged()

close : qreal

This property holds the close value of the candlestick item.

Access functions:

qreal close() const
void setClose(qreal close)

Notifier signal:

void closeChanged()

high : qreal

This property holds the high value of the candlestick item.

Access functions:

qreal high() const
void setHigh(qreal high)

Notifier signal:

void highChanged()

low : qreal

This property holds the low value of the candlestick item.

Access functions:

qreal low() const
void setLow(qreal low)

Notifier signal:

void lowChanged()

open : qreal

This property holds the open value of the candlestick item.

Access functions:

qreal open() const
void setOpen(qreal open)

Notifier signal:

void openChanged()

pen : QPen

This property holds the pen used to draw the lines of the candlestick item.

Access functions:

QPen pen() const
void setPen(const QPen &pen)

Notifier signal:

void penChanged()

timestamp : qreal

This property holds the timestamp value of the candlestick item.

Access functions:

qreal timestamp() const
void setTimestamp(qreal timestamp)

Notifier signal:

void timestampChanged()

Member Function Documentation

QCandlestickSet::QCandlestickSet(qreal timestamp = 0.0, QObject *parent = nullptr)

Constructs a candlestick item with an optional timestamp and a parent.

QCandlestickSet::QCandlestickSet(qreal open, qreal high, qreal low, qreal close, qreal timestamp = 0.0, QObject *parent = nullptr)

Constructs a candlestick item with given ordered values. The values open, high, low, and close are mandatory. The values timestamp and parent are optional.

[virtual] QCandlestickSet::~QCandlestickSet()

Destroys the candlestick item.

[signal] void QCandlestickSet::clicked()

[signal] void QCandlestickSet::doubleClicked()

[signal] void QCandlestickSet::hovered(bool status)

[signal] void QCandlestickSet::pressed()

[signal] void QCandlestickSet::released()