QCandlestickSet Class▲
-
Header: QCandlestickSet
-
Since: Qt 5.8
-
Inherited By:
-
Instantiated By: qml-qtcharts-candlestickset.xml
-
Inherits: QObject
-
Inherited By:
Detailed Description▲
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▲
See also QCandlestickSeries
Property Documentation▲
brush : QBrush▲
This property holds the brush used to fill the candlestick item.
Access functions:
-
brush() const
-
void setBrush(const &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:
-
pen() const
-
void setPen(const &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▲
[explicit] QCandlestickSet::QCandlestickSet(qreal timestamp = 0.0, QObject *parent = nullptr)▲
Constructs a candlestick item with an optional timestamp and a parent.
[explicit] 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.
void QCandlestickSet::brushChanged()▲
This signal is emitted when the candlestick item brush changes.
Notifier signal for property brush.
See Also▲
See also brush
void QCandlestickSet::clicked()▲
This signal is emitted when the candlestick item is clicked.
void QCandlestickSet::closeChanged()▲
This signal is emitted when the candlestick item close value changes.
Notifier signal for property close.
See Also▲
See also close
void QCandlestickSet::doubleClicked()▲
This signal is emitted when the user double-clicks a candlestick item.
void QCandlestickSet::highChanged()▲
This signal is emitted when the candlestick item high value changes.
Notifier signal for property high.
See Also▲
See also high
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.
void QCandlestickSet::lowChanged()▲
This signal is emitted when the candlestick item low value changes.
Notifier signal for property low.
See Also▲
See also low
void QCandlestickSet::openChanged()▲
This signal is emitted when the candlestick item open value changes.
Notifier signal for property open.
See Also▲
See also open
void QCandlestickSet::penChanged()▲
This signal is emitted when the candlestick item pen changes.
Notifier signal for property pen.
See Also▲
See also pen
void QCandlestickSet::pressed()▲
This signal is emitted when the user clicks the candlestick item and holds down the mouse button.
void QCandlestickSet::released()▲
This signal is emitted when the user releases the mouse press on the candlestick item.