QCandlestickSet#
The QCandlestickSet
class represents a single candlestick item in a candlestick chart. More…
Synopsis#
Properties#
Functions#
Signals#
def
brushChanged
()def
clicked
()def
closeChanged
()def
doubleClicked
()def
highChanged
()def
hovered
(status)def
lowChanged
()def
openChanged
()def
penChanged
()def
pressed
()def
released
()def
timestampChanged
()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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
- class PySide6.QtCharts.QCandlestickSet(open, high, low, close[, timestamp=0.0[, parent=None]])#
PySide6.QtCharts.QCandlestickSet([timestamp=0.0[, parent=None]])
- Parameters:
open – float
close – float
low – float
high – float
timestamp – float
parent –
PySide6.QtCore.QObject
Constructs a candlestick item with given ordered values. The values open
, high
, low
, and close
are mandatory. The values timestamp
and parent
are optional.
Constructs a candlestick item with an optional timestamp
and a parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtCharts.QCandlestickSet.brush: PySide6.QtGui.QBrush#
This property holds The brush used to fill the candlestick item..
- Access functions:
brush
()setBrush
(brush)Signal
brushChanged
()
- property PᅟySide6.QtCharts.QCandlestickSet.close: float#
This property holds The close value of the candlestick item..
- Access functions:
close
()setClose
(close)Signal
closeChanged
()
- property PᅟySide6.QtCharts.QCandlestickSet.high: float#
This property holds The high value of the candlestick item..
- Access functions:
high
()setHigh
(high)Signal
highChanged
()
- property PᅟySide6.QtCharts.QCandlestickSet.low: float#
This property holds The low value of the candlestick item..
- Access functions:
low
()setLow
(low)Signal
lowChanged
()
- property PᅟySide6.QtCharts.QCandlestickSet.open: float#
This property holds The open value of the candlestick item..
- Access functions:
open
()setOpen
(open)Signal
openChanged
()
- property PᅟySide6.QtCharts.QCandlestickSet.pen: PySide6.QtGui.QPen#
This property holds The pen used to draw the lines of the candlestick item..
- Access functions:
pen
()setPen
(pen)Signal
penChanged
()
- property PᅟySide6.QtCharts.QCandlestickSet.timestamp: float#
This property holds The timestamp value of the candlestick item..
- Access functions:
timestamp
()setTimestamp
(timestamp)Signal
timestampChanged
()
- PySide6.QtCharts.QCandlestickSet.brush()#
- Return type:
See also
Getter of property brush
.
- PySide6.QtCharts.QCandlestickSet.brushChanged()#
This signal is emitted when the candlestick item brush changes.
See also
Notification signal of property brush
.
- PySide6.QtCharts.QCandlestickSet.clicked()#
This signal is emitted when the candlestick item is clicked.
- PySide6.QtCharts.QCandlestickSet.close()#
- Return type:
float
See also
Getter of property close
.
- PySide6.QtCharts.QCandlestickSet.closeChanged()#
This signal is emitted when the candlestick item close value changes.
See also
Notification signal of property close
.
- PySide6.QtCharts.QCandlestickSet.doubleClicked()#
This signal is emitted when the user double-clicks a candlestick item.
Getter of property high
.
- PySide6.QtCharts.QCandlestickSet.highChanged()#
This signal is emitted when the candlestick item high value changes.
See also
Notification signal of property high
.
- PySide6.QtCharts.QCandlestickSet.hovered(status)#
- Parameters:
status – bool
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
.
Getter of property low
.
- PySide6.QtCharts.QCandlestickSet.lowChanged()#
This signal is emitted when the candlestick item low value changes.
See also
Notification signal of property low
.
Getter of property open
.
- PySide6.QtCharts.QCandlestickSet.openChanged()#
This signal is emitted when the candlestick item open value changes.
See also
Notification signal of property open
.
- PySide6.QtCharts.QCandlestickSet.pen()#
- Return type:
See also
Getter of property pen
.
- PySide6.QtCharts.QCandlestickSet.penChanged()#
This signal is emitted when the candlestick item pen changes.
See also
Notification signal of property pen
.
- PySide6.QtCharts.QCandlestickSet.pressed()#
This signal is emitted when the user clicks the candlestick item and holds down the mouse button.
- PySide6.QtCharts.QCandlestickSet.released()#
This signal is emitted when the user releases the mouse press on the candlestick item.
- PySide6.QtCharts.QCandlestickSet.setBrush(brush)#
- Parameters:
brush –
PySide6.QtGui.QBrush
See also
Setter of property brush
.
Setter of property close
.
Setter of property high
.
Setter of property low
.
Setter of property open
.
- PySide6.QtCharts.QCandlestickSet.setPen(pen)#
- Parameters:
pen –
PySide6.QtGui.QPen
See also
Setter of property pen
.
- PySide6.QtCharts.QCandlestickSet.setTimestamp(timestamp)#
- Parameters:
timestamp – float
See also
Setter of property timestamp
.
- PySide6.QtCharts.QCandlestickSet.timestamp()#
- Return type:
float
See also
Getter of property timestamp
.
- PySide6.QtCharts.QCandlestickSet.timestampChanged()#
This signal is emitted when the candlestick item timestamp changes.
See also
Notification signal of property timestamp
.