[−][src]Struct qt_charts::QBoxPlotSeries
C++ class: QtCharts::QBoxPlotSeries
.
Methods
impl QBoxPlotSeries
[src]
pub fn clicked(&self) -> Signal<(*mut QBoxSet,)>
[src]
This signal is emitted when the user clicks the box-and-whiskers item specified by boxset in the chart.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::clicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user clicks the box-and-whiskers item specified by boxset in the chart.
pub fn hovered(&self) -> Signal<(bool, *mut QBoxSet)>
[src]
This signal is emitted when a mouse is hovered over the box-and-whiskers item specified by boxset in the chart. When the mouse moves over the item, status turns true
, and when the mouse moves away again, it turns false
.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::hovered
that can be passed to qt_core::Signal::connect
.
This signal is emitted when a mouse is hovered over the box-and-whiskers item specified by boxset in the chart. When the mouse moves over the item, status turns true
, and when the mouse moves away again, it turns false
.
pub fn pressed(&self) -> Signal<(*mut QBoxSet,)>
[src]
This signal is emitted when the user clicks the box-and-whiskers item specified by boxset in the chart and holds down the mouse button.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::pressed
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user clicks the box-and-whiskers item specified by boxset in the chart and holds down the mouse button.
pub fn released(&self) -> Signal<(*mut QBoxSet,)>
[src]
This signal is emitted when the user releases the mouse press on the box-and-whiskers item specified by boxset in the chart.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::released
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user releases the mouse press on the box-and-whiskers item specified by boxset in the chart.
pub fn double_clicked(&self) -> Signal<(*mut QBoxSet,)>
[src]
This signal is emitted when the user double-clicks the box-and-whiskers item specified by boxset in the chart.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::doubleClicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user double-clicks the box-and-whiskers item specified by boxset in the chart.
pub fn count_changed(&self) -> Signal<()>
[src]
This signal is emitted when the number of box-and-whiskers items in the series changes.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::countChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the number of box-and-whiskers items in the series changes.
Note: Notifier signal for property count.
pub fn pen_changed(&self) -> Signal<()>
[src]
This signal is emitted when the pen used to draw the lines of the box-and-whiskers items changes.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::penChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the pen used to draw the lines of the box-and-whiskers items changes.
Note: Notifier signal for property pen.
pub fn brush_changed(&self) -> Signal<()>
[src]
This signal is emitted when the brush used to fill the boxes of the box-and-whiskers items changes.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::brushChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the brush used to fill the boxes of the box-and-whiskers items changes.
Note: Notifier signal for property brush.
pub fn box_outline_visibility_changed(&self) -> Signal<()>
[src]
This signal is emitted when the box outline visibility changes.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::boxOutlineVisibilityChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the box outline visibility changes.
Note: Notifier signal for property boxOutlineVisible.
pub fn box_width_changed(&self) -> Signal<()>
[src]
This signal is emitted when the width of the box-and-whiskers item changes.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::boxWidthChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the width of the box-and-whiskers item changes.
Note: Notifier signal for property boxWidth.
pub fn boxsets_added(&self) -> Signal<(*const QListOfQBoxSet,)>
[src]
This signal is emitted when the list of box-and-whiskers items specified by sets is added to the series.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::boxsetsAdded
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the list of box-and-whiskers items specified by sets is added to the series.
pub fn boxsets_removed(&self) -> Signal<(*const QListOfQBoxSet,)>
[src]
This signal is emitted when the list of box-and-whiskers items specified by sets is removed from the series.
Returns a built-in Qt signal QtCharts::QBoxPlotSeries::boxsetsRemoved
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the list of box-and-whiskers items specified by sets is removed from the series.
pub unsafe fn append_q_box_set(&self, box_: impl CastInto<Ptr<QBoxSet>>) -> bool
[src]
Adds a single box-and-whiskers item specified by set to the series and takes ownership of it. If the item is null or it already belongs to the series, it will not be appended. Returns true
if appending succeeded.
Calls C++ function: bool QtCharts::QBoxPlotSeries::append(QtCharts::QBoxSet* box)
.
Adds a single box-and-whiskers item specified by set to the series and takes ownership of it. If the item is null or it already belongs to the series, it will not be appended. Returns true
if appending succeeded.
pub unsafe fn append_q_list_of_q_box_set(
&self,
boxes: impl CastInto<Ref<QListOfQBoxSet>>
) -> bool
[src]
&self,
boxes: impl CastInto<Ref<QListOfQBoxSet>>
) -> bool
Adds a list of box-and-whiskers items specified by sets to the series and takes ownership of them. If the list is null or the items already belong to the series, it will not be appended. Returns true
if appending succeeded.
Calls C++ function: bool QtCharts::QBoxPlotSeries::append(QList<QtCharts::QBoxSet*> boxes)
.
Adds a list of box-and-whiskers items specified by sets to the series and takes ownership of them. If the list is null or the items already belong to the series, it will not be appended. Returns true
if appending succeeded.
pub unsafe fn box_outline_visible(&self) -> bool
[src]
This property holds the visibility of the box outline.
Calls C++ function: bool QtCharts::QBoxPlotSeries::boxOutlineVisible()
.
This property holds the visibility of the box outline.
Access functions:
bool | boxOutlineVisible() |
void | setBoxOutlineVisible(bool visible) |
Notifier signal:
void | boxOutlineVisibilityChanged() |
pub unsafe fn box_sets(&self) -> CppBox<QListOfQBoxSet>
[src]
Returns a list of box-and-whiskers items in a box plot series. Keeps the ownership of the items.
Calls C++ function: QList<QtCharts::QBoxSet*> QtCharts::QBoxPlotSeries::boxSets() const
.
Returns a list of box-and-whiskers items in a box plot series. Keeps the ownership of the items.
pub unsafe fn box_width(&self) -> c_double
[src]
This property holds the width of the box-and-whiskers item. The value indicates the relative width of the item within its category. The value can be between 0.0 and 1.0. Negative values are replaced with 0.0 and values greater than 1.0 are replaced with 1.0.
Calls C++ function: double QtCharts::QBoxPlotSeries::boxWidth()
.
This property holds the width of the box-and-whiskers item. The value indicates the relative width of the item within its category. The value can be between 0.0 and 1.0. Negative values are replaced with 0.0 and values greater than 1.0 are replaced with 1.0.
Access functions:
qreal | boxWidth() |
void | setBoxWidth(qreal width) |
Notifier signal:
void | boxWidthChanged() |
pub unsafe fn brush(&self) -> CppBox<QBrush>
[src]
This property holds the brush used to fill the boxes of the box-and-whiskers items.
Calls C++ function: QBrush QtCharts::QBoxPlotSeries::brush() const
.
This property holds the brush used to fill the boxes of the box-and-whiskers items.
Access functions:
QBrush | brush() const |
void | setBrush(const QBrush &brush) |
Notifier signal:
void | brushChanged() |
pub unsafe fn clear(&self)
[src]
Removes all box-and-whiskers items from the series and permanently deletes them.
Calls C++ function: void QtCharts::QBoxPlotSeries::clear()
.
Removes all box-and-whiskers items from the series and permanently deletes them.
pub unsafe fn count(&self) -> c_int
[src]
This property holds the number of box-and-whiskers items in a box plot series.
Calls C++ function: int QtCharts::QBoxPlotSeries::count() const
.
This property holds the number of box-and-whiskers items in a box plot series.
Access functions:
int | count() const |
Notifier signal:
void | countChanged() |
pub unsafe fn insert(
&self,
index: c_int,
box_: impl CastInto<Ptr<QBoxSet>>
) -> bool
[src]
&self,
index: c_int,
box_: impl CastInto<Ptr<QBoxSet>>
) -> bool
Inserts a box-and-whiskers item specified by set to a series at the position specified by index and takes ownership of the item. If the item is null or already belongs to the series, it will not be appended. Returns true
if inserting succeeds.
Calls C++ function: bool QtCharts::QBoxPlotSeries::insert(int index, QtCharts::QBoxSet* box)
.
Inserts a box-and-whiskers item specified by set to a series at the position specified by index and takes ownership of the item. If the item is null or already belongs to the series, it will not be appended. Returns true
if inserting succeeds.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QtCharts::QBoxPlotSeries::metaObject() const
.
pub unsafe fn new_1a(
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QBoxPlotSeries>
[src]
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QBoxPlotSeries>
Calls C++ function: [constructor] void QtCharts::QBoxPlotSeries::QBoxPlotSeries(QObject* parent = …)
.
pub unsafe fn new_0a() -> QBox<QBoxPlotSeries>
[src]
Calls C++ function: [constructor] void QtCharts::QBoxPlotSeries::QBoxPlotSeries()
.
pub unsafe fn pen(&self) -> CppBox<QPen>
[src]
This property holds the pen used to draw the lines of the box-and-whiskers items.
Calls C++ function: QPen QtCharts::QBoxPlotSeries::pen() const
.
This property holds the pen used to draw the lines of the box-and-whiskers items.
Access functions:
QPen | pen() const |
void | setPen(const QPen &pen) |
Notifier signal:
void | penChanged() |
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int QtCharts::QBoxPlotSeries::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* QtCharts::QBoxPlotSeries::qt_metacast(const char* arg1)
.
pub unsafe fn remove(&self, box_: impl CastInto<Ptr<QBoxSet>>) -> bool
[src]
Removes the box-and-whiskers item specified by set from the series and permanently deletes it if the removal succeeds. Returns true
if the item was removed.
Calls C++ function: bool QtCharts::QBoxPlotSeries::remove(QtCharts::QBoxSet* box)
.
Removes the box-and-whiskers item specified by set from the series and permanently deletes it if the removal succeeds. Returns true
if the item was removed.
pub unsafe fn set_box_outline_visible(&self, visible: bool)
[src]
This property holds the visibility of the box outline.
Calls C++ function: void QtCharts::QBoxPlotSeries::setBoxOutlineVisible(bool visible)
.
This property holds the visibility of the box outline.
Access functions:
bool | boxOutlineVisible() |
void | setBoxOutlineVisible(bool visible) |
Notifier signal:
void | boxOutlineVisibilityChanged() |
pub unsafe fn set_box_width(&self, width: c_double)
[src]
This property holds the width of the box-and-whiskers item. The value indicates the relative width of the item within its category. The value can be between 0.0 and 1.0. Negative values are replaced with 0.0 and values greater than 1.0 are replaced with 1.0.
Calls C++ function: void QtCharts::QBoxPlotSeries::setBoxWidth(double width)
.
This property holds the width of the box-and-whiskers item. The value indicates the relative width of the item within its category. The value can be between 0.0 and 1.0. Negative values are replaced with 0.0 and values greater than 1.0 are replaced with 1.0.
Access functions:
qreal | boxWidth() |
void | setBoxWidth(qreal width) |
Notifier signal:
void | boxWidthChanged() |
pub unsafe fn set_brush(&self, brush: impl CastInto<Ref<QBrush>>)
[src]
This property holds the brush used to fill the boxes of the box-and-whiskers items.
Calls C++ function: void QtCharts::QBoxPlotSeries::setBrush(const QBrush& brush)
.
This property holds the brush used to fill the boxes of the box-and-whiskers items.
Access functions:
QBrush | brush() const |
void | setBrush(const QBrush &brush) |
Notifier signal:
void | brushChanged() |
pub unsafe fn set_pen(&self, pen: impl CastInto<Ref<QPen>>)
[src]
This property holds the pen used to draw the lines of the box-and-whiskers items.
Calls C++ function: void QtCharts::QBoxPlotSeries::setPen(const QPen& pen)
.
This property holds the pen used to draw the lines of the box-and-whiskers items.
Access functions:
QPen | pen() const |
void | setPen(const QPen &pen) |
Notifier signal:
void | penChanged() |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn take(&self, box_: impl CastInto<Ptr<QBoxSet>>) -> bool
[src]
Takes the box-and-whiskers item specified by set from the series. Does not delete the item.
Calls C++ function: bool QtCharts::QBoxPlotSeries::take(QtCharts::QBoxSet* box)
.
Takes the box-and-whiskers item specified by set from the series. Does not delete the item.
Note: The series remains the item's parent object. You must set the parent object to take full ownership.
Returns true
if the take operation succeeds.
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QtCharts::QBoxPlotSeries::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QtCharts::QBoxPlotSeries::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn type_(&self) -> SeriesType
[src]
Reimplements: QAbstractSeries::type() const.
Calls C++ function: virtual QtCharts::QAbstractSeries::SeriesType QtCharts::QBoxPlotSeries::type() const
.
Reimplements: QAbstractSeries::type() const.
Returns the type of the series.
See also QAbstractSeries and SeriesType.
Methods from Deref<Target = QAbstractSeries>
pub fn name_changed(&self) -> Signal<()>
[src]
This signal is emitted when the series name changes.
Returns a built-in Qt signal QtCharts::QAbstractSeries::nameChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the series name changes.
Note: Notifier signal for property name.
pub fn visible_changed(&self) -> Signal<()>
[src]
This signal is emitted when the series visibility changes.
Returns a built-in Qt signal QtCharts::QAbstractSeries::visibleChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the series visibility changes.
Note: Notifier signal for property visible.
pub fn opacity_changed(&self) -> Signal<()>
[src]
This signal is emitted when the opacity of the series changes.
Returns a built-in Qt signal QtCharts::QAbstractSeries::opacityChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the opacity of the series changes.
Note: Notifier signal for property opacity.
pub fn use_opengl_changed(&self) -> Signal<()>
[src]
This signal is emitted when accelerating the drawing of the series by using OpenGL is enabled or disabled.
Returns a built-in Qt signal QtCharts::QAbstractSeries::useOpenGLChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when accelerating the drawing of the series by using OpenGL is enabled or disabled.
Note: Notifier signal for property useOpenGL.
pub unsafe fn attach_axis(
&self,
axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
[src]
&self,
axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
Attaches the axis specified by axis to the series.
Calls C++ function: bool QtCharts::QAbstractSeries::attachAxis(QtCharts::QAbstractAxis* axis)
.
Attaches the axis specified by axis to the series.
Returns true
if the axis was attached successfully, false
otherwise.
Note: If multiple axes of the same orientation are attached to the same series, they will have the same minimum and maximum values.
See also QChart::addAxis() and QChart::createDefaultAxes().
pub unsafe fn attached_axes(&self) -> CppBox<QListOfQAbstractAxis>
[src]
Returns the list of axes attached to the series. Usually, an x-axis and a y-axis are attached to a series, except for QPieSeries, which does not have any axes attached.
Calls C++ function: QList<QtCharts::QAbstractAxis*> QtCharts::QAbstractSeries::attachedAxes()
.
Returns the list of axes attached to the series. Usually, an x-axis and a y-axis are attached to a series, except for QPieSeries, which does not have any axes attached.
See also attachAxis() and detachAxis().
pub unsafe fn chart(&self) -> QPtr<QChart>
[src]
Returns the chart that the series belongs to.
Calls C++ function: QtCharts::QChart* QtCharts::QAbstractSeries::chart() const
.
Returns the chart that the series belongs to.
Set automatically when the series is added to the chart, and unset when the series is removed from the chart.
pub unsafe fn detach_axis(
&self,
axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
[src]
&self,
axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
Detaches the axis specified by axis from the series.
Calls C++ function: bool QtCharts::QAbstractSeries::detachAxis(QtCharts::QAbstractAxis* axis)
.
Detaches the axis specified by axis from the series.
Returns true
if the axis was detached successfully, false
otherwise.
See also QChart::removeAxis().
pub unsafe fn hide(&self)
[src]
Sets the visibility of the series to false
.
Calls C++ function: void QtCharts::QAbstractSeries::hide()
.
Sets the visibility of the series to false
.
See also setVisible() and isVisible().
pub unsafe fn is_visible(&self) -> bool
[src]
This property holds whether the series is visible or not.
Calls C++ function: bool QtCharts::QAbstractSeries::isVisible() const
.
This property holds whether the series is visible or not.
By default, true
.
Access functions:
bool | isVisible() const |
void | setVisible(bool visible = true) |
Notifier signal:
void | visibleChanged() |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QtCharts::QAbstractSeries::metaObject() const
.
pub unsafe fn name(&self) -> CppBox<QString>
[src]
This property holds the name of the series.
Calls C++ function: QString QtCharts::QAbstractSeries::name() const
.
This property holds the name of the series.
The name is displayed in the legend for the series and it supports HTML formatting.
Access functions:
QString | name() const |
void | setName(const QString &name) |
Notifier signal:
void | nameChanged() |
pub unsafe fn opacity(&self) -> c_double
[src]
This property holds the opacity of the series.
Calls C++ function: double QtCharts::QAbstractSeries::opacity() const
.
This property holds the opacity of the series.
By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).
Access functions:
qreal | opacity() const |
void | setOpacity(qreal opacity) |
Notifier signal:
void | opacityChanged() |
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int QtCharts::QAbstractSeries::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* QtCharts::QAbstractSeries::qt_metacast(const char* arg1)
.
pub unsafe fn set_name(&self, name: impl CastInto<Ref<QString>>)
[src]
This property holds the name of the series.
Calls C++ function: void QtCharts::QAbstractSeries::setName(const QString& name)
.
This property holds the name of the series.
The name is displayed in the legend for the series and it supports HTML formatting.
Access functions:
QString | name() const |
void | setName(const QString &name) |
Notifier signal:
void | nameChanged() |
pub unsafe fn set_opacity(&self, opacity: c_double)
[src]
This property holds the opacity of the series.
Calls C++ function: void QtCharts::QAbstractSeries::setOpacity(double opacity)
.
This property holds the opacity of the series.
By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).
Access functions:
qreal | opacity() const |
void | setOpacity(qreal opacity) |
Notifier signal:
void | opacityChanged() |
pub unsafe fn set_use_opengl_1a(&self, enable: bool)
[src]
Specifies whether or not drawing the series is accelerated by using OpenGL.
Calls C++ function: void QtCharts::QAbstractSeries::setUseOpenGL(bool enable = …)
.
Specifies whether or not drawing the series is accelerated by using OpenGL.
Acceleration using OpenGL is supported only for QLineSeries and QScatterSeries. A line series used as an edge series for QAreaSeries cannot use OpenGL acceleration. When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.
Performance gained from using OpenGL to accelerate series drawing depends on the underlying hardware, but in most cases it is significant. For example, on a standard desktop computer, enabling OpenGL acceleration for a series typically allows rendering at least a hundred times more points without reduction on the frame rate. Chart size also has less effect on the frame rate.
The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:
- Series animations are not supported for accelerated series.
- Point labels are not supported for accelerated series.
- Pen styles and marker shapes are ignored for accelerated series. Only solid lines and plain scatter dots are supported. The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
- Polar charts do not support accelerated series.
- Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.
These additional restrictions stem from the fact that the accelerated series is drawn on a separate widget on top of the chart:
- If you draw any graphics items on top of a chart containing an accelerated series, the accelerated series is drawn over those items.
- To enable QOpenGLWidget to be partially transparent, it needs to be stacked on top of all other widgets. This means you cannot have other widgets partially covering the chart when using accelerated series.
- Accelerated series are not supported for use cases where the graphics scene has more than one graphics view attached to it.
- Accelerated series are not supported for use cases where the chart has non-default geometry. For example, adding transforms to the graphics view causes the accelerated series to be drawn in an incorrect position related to the chart.
The default value is false
.
Access functions:
bool | useOpenGL() const |
void | setUseOpenGL(bool enable = true) |
Notifier signal:
void | useOpenGLChanged() |
pub unsafe fn set_use_opengl_0a(&self)
[src]
Specifies whether or not drawing the series is accelerated by using OpenGL.
Calls C++ function: void QtCharts::QAbstractSeries::setUseOpenGL()
.
Specifies whether or not drawing the series is accelerated by using OpenGL.
Acceleration using OpenGL is supported only for QLineSeries and QScatterSeries. A line series used as an edge series for QAreaSeries cannot use OpenGL acceleration. When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.
Performance gained from using OpenGL to accelerate series drawing depends on the underlying hardware, but in most cases it is significant. For example, on a standard desktop computer, enabling OpenGL acceleration for a series typically allows rendering at least a hundred times more points without reduction on the frame rate. Chart size also has less effect on the frame rate.
The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:
- Series animations are not supported for accelerated series.
- Point labels are not supported for accelerated series.
- Pen styles and marker shapes are ignored for accelerated series. Only solid lines and plain scatter dots are supported. The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
- Polar charts do not support accelerated series.
- Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.
These additional restrictions stem from the fact that the accelerated series is drawn on a separate widget on top of the chart:
- If you draw any graphics items on top of a chart containing an accelerated series, the accelerated series is drawn over those items.
- To enable QOpenGLWidget to be partially transparent, it needs to be stacked on top of all other widgets. This means you cannot have other widgets partially covering the chart when using accelerated series.
- Accelerated series are not supported for use cases where the graphics scene has more than one graphics view attached to it.
- Accelerated series are not supported for use cases where the chart has non-default geometry. For example, adding transforms to the graphics view causes the accelerated series to be drawn in an incorrect position related to the chart.
The default value is false
.
Access functions:
bool | useOpenGL() const |
void | setUseOpenGL(bool enable = true) |
Notifier signal:
void | useOpenGLChanged() |
pub unsafe fn set_visible_1a(&self, visible: bool)
[src]
This property holds whether the series is visible or not.
Calls C++ function: void QtCharts::QAbstractSeries::setVisible(bool visible = …)
.
This property holds whether the series is visible or not.
By default, true
.
Access functions:
bool | isVisible() const |
void | setVisible(bool visible = true) |
Notifier signal:
void | visibleChanged() |
pub unsafe fn set_visible_0a(&self)
[src]
This property holds whether the series is visible or not.
Calls C++ function: void QtCharts::QAbstractSeries::setVisible()
.
This property holds whether the series is visible or not.
By default, true
.
Access functions:
bool | isVisible() const |
void | setVisible(bool visible = true) |
Notifier signal:
void | visibleChanged() |
pub unsafe fn show(&self)
[src]
Sets the visibility of the series to true
.
Calls C++ function: void QtCharts::QAbstractSeries::show()
.
Sets the visibility of the series to true
.
See also setVisible() and isVisible().
pub unsafe fn type_(&self) -> SeriesType
[src]
This property holds the type of the series.
Calls C++ function: pure virtual QtCharts::QAbstractSeries::SeriesType QtCharts::QAbstractSeries::type() const
.
This property holds the type of the series.
Access functions:
virtual QAbstractSeries::SeriesType | type() const = 0 |
pub unsafe fn use_opengl(&self) -> bool
[src]
Specifies whether or not drawing the series is accelerated by using OpenGL.
Calls C++ function: bool QtCharts::QAbstractSeries::useOpenGL() const
.
Specifies whether or not drawing the series is accelerated by using OpenGL.
Acceleration using OpenGL is supported only for QLineSeries and QScatterSeries. A line series used as an edge series for QAreaSeries cannot use OpenGL acceleration. When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.
Performance gained from using OpenGL to accelerate series drawing depends on the underlying hardware, but in most cases it is significant. For example, on a standard desktop computer, enabling OpenGL acceleration for a series typically allows rendering at least a hundred times more points without reduction on the frame rate. Chart size also has less effect on the frame rate.
The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:
- Series animations are not supported for accelerated series.
- Point labels are not supported for accelerated series.
- Pen styles and marker shapes are ignored for accelerated series. Only solid lines and plain scatter dots are supported. The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
- Polar charts do not support accelerated series.
- Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.
These additional restrictions stem from the fact that the accelerated series is drawn on a separate widget on top of the chart:
- If you draw any graphics items on top of a chart containing an accelerated series, the accelerated series is drawn over those items.
- To enable QOpenGLWidget to be partially transparent, it needs to be stacked on top of all other widgets. This means you cannot have other widgets partially covering the chart when using accelerated series.
- Accelerated series are not supported for use cases where the graphics scene has more than one graphics view attached to it.
- Accelerated series are not supported for use cases where the chart has non-default geometry. For example, adding transforms to the graphics view causes the accelerated series to be drawn in an incorrect position related to the chart.
The default value is false
.
Access functions:
bool | useOpenGL() const |
void | setUseOpenGL(bool enable = true) |
Notifier signal:
void | useOpenGLChanged() |
Trait Implementations
impl CppDeletable for QBoxPlotSeries
[src]
unsafe fn delete(&self)
[src]
Removes the series from the chart.
Calls C++ function: virtual [destructor] void QtCharts::QBoxPlotSeries::~QBoxPlotSeries()
.
Removes the series from the chart.
impl Deref for QBoxPlotSeries
[src]
type Target = QAbstractSeries
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractSeries
[src]
Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QBoxPlotSeries* ptr)
.
impl DynamicCast<QBoxPlotSeries> for QAbstractSeries
[src]
unsafe fn dynamic_cast(ptr: Ptr<QAbstractSeries>) -> Ptr<QBoxPlotSeries>
[src]
Calls C++ function: QtCharts::QBoxPlotSeries* dynamic_cast<QtCharts::QBoxPlotSeries*>(QtCharts::QAbstractSeries* ptr)
.
impl DynamicCast<QBoxPlotSeries> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QBoxPlotSeries>
[src]
Calls C++ function: QtCharts::QBoxPlotSeries* dynamic_cast<QtCharts::QBoxPlotSeries*>(QObject* ptr)
.
impl StaticDowncast<QBoxPlotSeries> for QAbstractSeries
[src]
unsafe fn static_downcast(ptr: Ptr<QAbstractSeries>) -> Ptr<QBoxPlotSeries>
[src]
Calls C++ function: QtCharts::QBoxPlotSeries* static_cast<QtCharts::QBoxPlotSeries*>(QtCharts::QAbstractSeries* ptr)
.
impl StaticDowncast<QBoxPlotSeries> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QBoxPlotSeries>
[src]
Calls C++ function: QtCharts::QBoxPlotSeries* static_cast<QtCharts::QBoxPlotSeries*>(QObject* ptr)
.
impl StaticUpcast<QAbstractSeries> for QBoxPlotSeries
[src]
unsafe fn static_upcast(ptr: Ptr<QBoxPlotSeries>) -> Ptr<QAbstractSeries>
[src]
Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QBoxPlotSeries* ptr)
.
impl StaticUpcast<QObject> for QBoxPlotSeries
[src]
unsafe fn static_upcast(ptr: Ptr<QBoxPlotSeries>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QBoxPlotSeries* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QBoxPlotSeries
impl Send for QBoxPlotSeries
impl Sync for QBoxPlotSeries
impl Unpin for QBoxPlotSeries
impl UnwindSafe for QBoxPlotSeries
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,