QCandlestickSet Class

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

头文件: #include <QCandlestickSet>
开始支持版本: Qt 5.8
Instantiated By: CandlestickSet
基类: QObject

属性

公有函数

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
  • 32 个公有函数继承自 QObject

信号

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()

其他继承的成员

  • 1 个公有槽函数继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

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().

参见 QCandlestickSeries.

属性

brush : QBrush

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

访问函数:

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

Notifier signal:

void brushChanged()

close : qreal

This property holds the close value of the candlestick item.

访问函数:

qreal close() const
void setClose(qreal close)

Notifier signal:

void closeChanged()

high : qreal

This property holds the high value of the candlestick item.

访问函数:

qreal high() const
void setHigh(qreal high)

Notifier signal:

void highChanged()

low : qreal

This property holds the low value of the candlestick item.

访问函数:

qreal low() const
void setLow(qreal low)

Notifier signal:

void lowChanged()

open : qreal

This property holds the open value of the candlestick item.

访问函数:

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.

访问函数:

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

Notifier signal:

void penChanged()

timestamp : qreal

This property holds the timestamp value of the candlestick item.

访问函数:

qreal timestamp() const
void setTimestamp(qreal timestamp)

Notifier signal:

成员函数

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::brushChanged()

This signal is emitted when the candlestick item brush changes.

Note: Notifier signal for property brush.

参见 brush.

[signal] void QCandlestickSet::clicked()

This signal is emitted when the candlestick item is clicked.

[signal] void QCandlestickSet::closeChanged()

This signal is emitted when the candlestick item close value changes.

Note: Notifier signal for property close.

参见 close.

[signal] void QCandlestickSet::doubleClicked()

This signal is emitted when the user double-clicks a candlestick item.

[signal] void QCandlestickSet::highChanged()

This signal is emitted when the candlestick item high value changes.

Note: Notifier signal for property high.

参见 high.

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

This signal is emitted when a mouse is hovered over a candlestick item.

When the mouse moves over the item, status turns true, and when the mouse moves away again, it turns false.

[signal] void QCandlestickSet::lowChanged()

This signal is emitted when the candlestick item low value changes.

Note: Notifier signal for property low.

参见 low.

[signal] void QCandlestickSet::openChanged()

This signal is emitted when the candlestick item open value changes.

Note: Notifier signal for property open.

参见 open.

[signal] void QCandlestickSet::penChanged()

This signal is emitted when the candlestick item pen changes.

Note: Notifier signal for property pen.

参见 pen.

[signal] void QCandlestickSet::pressed()

This signal is emitted when the user clicks the candlestick item and holds down the mouse button.

[signal] void QCandlestickSet::released()

This signal is emitted when the user releases the mouse press on the candlestick item.

[signal] void QCandlestickSet::timestampChanged()

This signal is emitted when the candlestick item timestamp changes.

Note: Notifier signal for property timestamp.

参见 timestamp.