- class QCandlestickSet#
The
QCandlestickSet
class represents a single candlestick item in a candlestick chart. More…Synopsis#
Properties#
Methods#
def
__init__()
def
brush()
def
close()
def
high()
def
low()
def
open()
def
pen()
def
setBrush()
def
setClose()
def
setHigh()
def
setLow()
def
setOpen()
def
setPen()
def
setTimestamp()
def
timestamp()
Signals#
def
brushChanged()
def
clicked()
def
closeChanged()
def
doubleClicked()
def
highChanged()
def
hovered()
def
lowChanged()
def
openChanged()
def
penChanged()
def
pressed()
def
released()
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 usingsetOpen()
,setHigh()
,setLow()
,setClose()
, andsetTimestamp()
.See also
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.This property holds The brush used to fill the candlestick item..
- Access functions:
Signal
brushChanged()
- property closeᅟ: float#
This property holds The close value of the candlestick item..
- Access functions:
Signal
closeChanged()
- property highᅟ: float#
This property holds The high value of the candlestick item..
- Access functions:
Signal
highChanged()
- property lowᅟ: float#
This property holds The low value of the candlestick item..
- Access functions:
Signal
lowChanged()
- property openᅟ: float#
This property holds The open value of the candlestick item..
- Access functions:
Signal
openChanged()
This property holds The pen used to draw the lines of the candlestick item..
- Access functions:
Signal
penChanged()
- property timestampᅟ: float#
This property holds The timestamp value of the candlestick item..
- Access functions:
Constructs a candlestick item with an optional
timestamp
and aparent
.- __init__(open, high, low, close[, timestamp=0.0[, parent=None]])
- Parameters:
open – float
high – float
low – float
close – float
timestamp – float
parent –
QObject
Constructs a candlestick item with given ordered values. The values
open
,high
,low
, andclose
are mandatory. The valuestimestamp
andparent
are optional.- brush()#
- Return type:
See also
Getter of property
brushᅟ
.- brushChanged()#
This signal is emitted when the candlestick item brush changes.
See also
Notification signal of property
brushᅟ
.- clicked()#
This signal is emitted when the candlestick item is clicked.
- close()#
- Return type:
float
See also
Getter of property
closeᅟ
.- closeChanged()#
This signal is emitted when the candlestick item close value changes.
See also
Notification signal of property
closeᅟ
.- doubleClicked()#
This signal is emitted when the user double-clicks a candlestick item.
Getter of property
highᅟ
.- highChanged()#
This signal is emitted when the candlestick item high value changes.
See also
Notification signal of property
highᅟ
.- 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
turnstrue
, and when the mouse moves away again, it turnsfalse
.Getter of property
lowᅟ
.- lowChanged()#
This signal is emitted when the candlestick item low value changes.
See also
Notification signal of property
lowᅟ
.Getter of property
openᅟ
.- openChanged()#
This signal is emitted when the candlestick item open value changes.
See also
Notification signal of property
openᅟ
.Getter of property
penᅟ
.- penChanged()#
This signal is emitted when the candlestick item pen changes.
See also
Notification signal of property
penᅟ
.- pressed()#
This signal is emitted when the user clicks the candlestick item and holds down the mouse button.
- released()#
This signal is emitted when the user releases the mouse press on the candlestick item.
Setter of property
brushᅟ
.Setter of property
closeᅟ
.Setter of property
highᅟ
.Setter of property
lowᅟ
.Setter of property
openᅟ
.Setter of property
penᅟ
.- setTimestamp(timestamp)#
- Parameters:
timestamp – float
See also
Setter of property
timestampᅟ
.- timestamp()#
- Return type:
float
See also
Getter of property
timestampᅟ
.- timestampChanged()#
This signal is emitted when the candlestick item timestamp changes.
See also
Notification signal of property
timestampᅟ
.