PySide6.QtGraphs.QLineSeries¶
- class QLineSeries¶
The
QLineSeriesclass presents data in line graphs.Details
A line graph is used to show information as a series of data points connected by straight lines or steps.
Synopsis¶
Properties¶
capStyleᅟ- The cap style used for line endingsdashOffsetᅟ- The dash offset when strokeStyle is set to LineSeries.DashLinedashPatternᅟ- The dash pattern when strokeStyle is set to LineSeries.DashLinejoinStyleᅟ- The join style used for line endingslineStyleᅟ- The line style used for lines renderingstrokeStyleᅟ- The stroke style of the serieswidthᅟ- The width of the line in the series
Methods¶
def
__init__()def
capStyle()def
dashOffset()def
dashPattern()def
joinStyle()def
lineStyle()def
setCapStyle()def
setDashOffset()def
setDashPattern()def
setJoinStyle()def
setLineStyle()def
setStrokeStyle()def
setWidth()def
strokeStyle()def
width()
Signals¶
def
widthChanged()
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
- class LineStyle¶
Represents the line style of the series.
Constant
Description
QLineSeries.LineStyle.LineStyle.Straight
The points are connected by a straight line.
QLineSeries.LineStyle.LineStyle.StepLeft
The points are connected by steps where each step height is the value from the left.
QLineSeries.LineStyle.LineStyle.StepRight
The points are connected by steps where each step height is the value from the right.
QLineSeries.LineStyle.LineStyle.StepCenter
The points are connected by steps which change in the middle between two values.
Added in version 6.11.
- class StrokeStyle¶
Represents the stroke style of the series. The default value is StrokeStyle.SolidLine.
Constant
Description
QLineSeries.StrokeStyle.StrokeStyle.SolidLine
A plain line.
QLineSeries.StrokeStyle.StrokeStyle.DashLine
Dashes separated by a few pixels.
Added in version 6.11.
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property capStyleᅟ: Qt.PenCapStyle¶
This property holds the cap style used for line endings..
The default value is Qt.SquareCap.
- Access functions:
- property dashOffsetᅟ: float¶
This property holds the dash offset when
strokeStyleis set toDashLine..- Access functions:
- property dashPatternᅟ: list of qreal¶
This property holds the dash pattern when
strokeStyleis set toDashLine..- Access functions:
- property joinStyleᅟ: Qt.PenJoinStyle¶
This property holds the join style used for line endings..
The default value is Qt.BevelJoin.
- Access functions:
- property lineStyleᅟ: QLineSeries.LineStyle¶
This property holds the line style used for lines rendering..
The default value is
Straight.- Access functions:
- property strokeStyleᅟ: QLineSeries.StrokeStyle¶
This property holds the stroke style of the series..
The default value is
SolidLine.- Access functions:
- property widthᅟ: float¶
This property holds the width of the line in the series..
This property holds the pen width used to draw the series line.
- Access functions:
Signal
widthChanged()
- capStyle()¶
- Return type:
See also
Getter of property
capStyleᅟ.- capStyleChanged()¶
Notification signal of property
capStyleᅟ.- dashOffset()¶
- Return type:
float
See also
Getter of property
dashOffsetᅟ.- dashOffsetChanged(newDashOffset)¶
- Parameters:
newDashOffset – float
Notification signal of property
dashOffsetᅟ.- dashPattern()¶
- Return type:
.list of qreal
See also
Getter of property
dashPatternᅟ.- dashPatternChanged(newDashPattern)¶
- Parameters:
newDashPattern – .list of qreal
Notification signal of property
dashPatternᅟ.Returns
xandyrendercoordinates converted into data point coordinates.- joinStyle()¶
- Return type:
See also
Getter of property
joinStyleᅟ.- joinStyleChanged(newJoinStyle)¶
- Parameters:
newJoinStyle –
PenJoinStyle
Notification signal of property
joinStyleᅟ.- lineStyle()¶
- Return type:
See also
Getter of property
lineStyleᅟ.Notification signal of property
lineStyleᅟ.- setCapStyle(newCapStyle)¶
- Parameters:
newCapStyle –
PenCapStyle
See also
Setter of property
capStyleᅟ.- setDashOffset(newDashOffset)¶
- Parameters:
newDashOffset – float
See also
Setter of property
dashOffsetᅟ.- setDashPattern(pattern)¶
- Parameters:
pattern – .list of qreal
See also
Setter of property
dashPatternᅟ.- setJoinStyle(newJoinStyle)¶
- Parameters:
newJoinStyle –
PenJoinStyle
See also
Setter of property
joinStyleᅟ.Setter of property
lineStyleᅟ.- setStrokeStyle(newStrokeStyle)¶
- Parameters:
newStrokeStyle –
StrokeStyle
See also
Setter of property
strokeStyleᅟ.Setter of property
widthᅟ.- strokeStyle()¶
- Return type:
See also
Getter of property
strokeStyleᅟ.- strokeStyleChanged(newStrokeStyle)¶
- Parameters:
newStrokeStyle –
StrokeStyle
Notification signal of property
strokeStyleᅟ.- width()¶
- Return type:
float
See also
Getter of property
widthᅟ.- widthChanged()¶
Notification signal of property
widthᅟ.