[][src]Struct qt_charts::QAbstractBarSeries

#[repr(C)]pub struct QAbstractBarSeries { /* fields omitted */ }

C++ class: QtCharts::QAbstractBarSeries.

Methods

impl QAbstractBarSeries[src]

pub fn clicked(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::clicked that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset.

pub fn hovered(&self) -> Signal<(bool, c_int, *mut QBarSet)>[src]

This signal is emitted when a mouse is hovered over the bar specified by index in the bar set specified by barset. When the mouse moves over the bar, status turns true, and when the mouse moves away again, it turns false.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::hovered that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when a mouse is hovered over the bar specified by index in the bar set specified by barset. When the mouse moves over the bar, status turns true, and when the mouse moves away again, it turns false.

pub fn pressed(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset and holds down the mouse button.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::pressed that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset and holds down the mouse button.

pub fn released(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user releases the mouse press on the bar specified by index in the bar set specified by barset.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::released that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the user releases the mouse press on the bar specified by index in the bar set specified by barset.

pub fn double_clicked(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user double-clicks the bar specified by index in the bar set specified by barset.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::doubleClicked that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the user double-clicks the bar specified by index in the bar set specified by barset.

pub fn count_changed(&self) -> Signal<()>[src]

This signal is emitted when the number of bar sets is changed, for example by append() or remove().

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::countChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the number of bar sets is changed, for example by append() or remove().

Note: Notifier signal for property count.

pub fn labels_visible_changed(&self) -> Signal<()>[src]

This signal is emitted when the labels' visibility changes.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::labelsVisibleChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the labels' visibility changes.

Note: Notifier signal for property labelsVisible.

See also isLabelsVisible() and setLabelsVisible().

pub fn labels_format_changed(&self) -> Signal<(*const QString,)>[src]

This signal is emitted when the format of data value labels changes.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::labelsFormatChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the format of data value labels changes.

Note: Notifier signal for property labelsFormat.

pub fn labels_position_changed(&self) -> Signal<(LabelsPosition,)>[src]

This signal is emitted when the position of value labels changes.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::labelsPositionChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the position of value labels changes.

Note: Notifier signal for property labelsPosition.

pub fn labels_angle_changed(&self) -> Signal<(c_double,)>[src]

This signal is emitted when the angle of the value labels changes.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::labelsAngleChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the angle of the value labels changes.

Note: Notifier signal for property labelsAngle.

pub fn labels_precision_changed(&self) -> Signal<(c_int,)>[src]

This signal is emitted when the precision of the value labels changes.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::labelsPrecisionChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the precision of the value labels changes.

Note: Notifier signal for property labelsPrecision.

pub fn barsets_added(&self) -> Signal<(*const QListOfQBarSet,)>[src]

This signal is emitted when the bar sets specified by sets are added to the series.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::barsetsAdded that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the bar sets specified by sets are added to the series.

See also append() and insert().

pub fn barsets_removed(&self) -> Signal<(*const QListOfQBarSet,)>[src]

This signal is emitted when the bar sets specified by sets are removed from the series.

Returns a built-in Qt signal QtCharts::QAbstractBarSeries::barsetsRemoved that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the bar sets specified by sets are removed from the series.

See also remove().

pub unsafe fn append_q_bar_set(&self, set: impl CastInto<Ptr<QBarSet>>) -> bool[src]

Adds a set of bars specified by set to the bar series and takes ownership of it. If the set is null or it already belongs to the series, it will not be appended. Returns true if appending succeeded.

Calls C++ function: bool QtCharts::QAbstractBarSeries::append(QtCharts::QBarSet* set).

C++ documentation:

Adds a set of bars specified by set to the bar series and takes ownership of it. If the set 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_bar_set(
    &self,
    sets: impl CastInto<Ref<QListOfQBarSet>>
) -> bool
[src]

Adds a list of bar sets specified by sets to a bar series and takes ownership of the sets. Returns true if all sets were appended successfully. If any of the sets is null or was previously appended to the series, nothing is appended and this function returns false. If any of the sets appears in the list more than once, nothing is appended and this function returns false.

Calls C++ function: bool QtCharts::QAbstractBarSeries::append(QList<QtCharts::QBarSet*> sets).

C++ documentation:

Adds a list of bar sets specified by sets to a bar series and takes ownership of the sets. Returns true if all sets were appended successfully. If any of the sets is null or was previously appended to the series, nothing is appended and this function returns false. If any of the sets appears in the list more than once, nothing is appended and this function returns false.

pub unsafe fn bar_sets(&self) -> CppBox<QListOfQBarSet>[src]

Returns a list of bar sets in a bar series. Keeps the ownership of the bar sets.

Calls C++ function: QList<QtCharts::QBarSet*> QtCharts::QAbstractBarSeries::barSets() const.

C++ documentation:

Returns a list of bar sets in a bar series. Keeps the ownership of the bar sets.

pub unsafe fn bar_width(&self) -> c_double[src]

This property holds the width of the bars of the series.

Calls C++ function: double QtCharts::QAbstractBarSeries::barWidth() const.

C++ documentation:

This property holds the width of the bars of the series.

The unit of width is the unit of the x-axis. The minimum width for bars is zero, and negative values are treated as zero. Setting the width to zero means that the width of the bar on the screen is one pixel regardless of the scale of the x-axis. Bars wider than zero are scaled using the x-axis scale.

Note: When used with QBarSeries, this value specifies the width of a group of bars instead of that of a single bar.

Access functions:

qreal barWidth() const
void setBarWidth(qreal width)

See also QBarSeries.

pub unsafe fn clear(&self)[src]

Removes all bar sets from the series and permanently deletes them.

Calls C++ function: void QtCharts::QAbstractBarSeries::clear().

C++ documentation:

Removes all bar sets from the series and permanently deletes them.

pub unsafe fn count(&self) -> c_int[src]

This property holds the number of bar sets in a bar series.

Calls C++ function: int QtCharts::QAbstractBarSeries::count() const.

C++ documentation:

This property holds the number of bar sets in a bar series.

Access functions:

int count() const

Notifier signal:

void countChanged()

pub unsafe fn insert(
    &self,
    index: c_int,
    set: impl CastInto<Ptr<QBarSet>>
) -> bool
[src]

Inserts a bar set specified by set to a series at the position specified by index and takes ownership of the set. If the set is null or already belongs to the series, it will not be appended. Returns true if inserting succeeds.

Calls C++ function: bool QtCharts::QAbstractBarSeries::insert(int index, QtCharts::QBarSet* set).

C++ documentation:

Inserts a bar set specified by set to a series at the position specified by index and takes ownership of the set. If the set is null or already belongs to the series, it will not be appended. Returns true if inserting succeeds.

pub unsafe fn is_labels_visible(&self) -> bool[src]

Returns the visibility of labels.

Calls C++ function: bool QtCharts::QAbstractBarSeries::isLabelsVisible() const.

C++ documentation:

Returns the visibility of labels.

Note: Getter function for property labelsVisible.

pub unsafe fn labels_angle(&self) -> c_double[src]

This property holds the angle of the value labels in degrees.

Calls C++ function: double QtCharts::QAbstractBarSeries::labelsAngle() const.

C++ documentation:

This property holds the angle of the value labels in degrees.

Access functions:

qreal labelsAngle() const
void setLabelsAngle(qreal angle)

Notifier signal:

void labelsAngleChanged(qreal angle)

pub unsafe fn labels_format(&self) -> CppBox<QString>[src]

This property holds the format used for showing labels in a bar series.

Calls C++ function: QString QtCharts::QAbstractBarSeries::labelsFormat() const.

C++ documentation:

This property holds the format used for showing labels in a bar series.

QAbstractBarSeries supports the following format tag:

@valueThe value of the bar

For example, the following usage of the format tags would produce labels that show the value followed by the unit (u):

series->setLabelsFormat("@value u");

By default, the labels show the value of the bar. For the percent bar series, % is added after the value. The labels are shown on the plot area, whereas labels on the edge of the plot area are cut. If the bars are close to each other, the labels may overlap.

Access functions:

QString labelsFormat() const
void setLabelsFormat(const QString &format)

Notifier signal:

void labelsFormatChanged(const QString &format)

See also labelsVisible, labelsPosition, and labelsPrecision.

pub unsafe fn labels_position(&self) -> LabelsPosition[src]

This property holds the position of value labels.

Calls C++ function: QtCharts::QAbstractBarSeries::LabelsPosition QtCharts::QAbstractBarSeries::labelsPosition() const.

C++ documentation:

This property holds the position of value labels.

Access functions:

QAbstractBarSeries::LabelsPosition labelsPosition() const
void setLabelsPosition(QAbstractBarSeries::LabelsPosition position)

Notifier signal:

void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position)

See also labelsVisible and labelsFormat.

pub unsafe fn labels_precision(&self) -> c_int[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This property holds the maximum amount of significant digits shown in value labels.

Calls C++ function: int QtCharts::QAbstractBarSeries::labelsPrecision() const.

C++ documentation:

This property holds the maximum amount of significant digits shown in value labels.

Default value is 6.

Access functions:

int labelsPrecision() const
void setLabelsPrecision(int precision)

Notifier signal:

void labelsPrecisionChanged(int precision)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QtCharts::QAbstractBarSeries::metaObject() const.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QtCharts::QAbstractBarSeries::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::QAbstractBarSeries::qt_metacast(const char* arg1).

pub unsafe fn remove(&self, set: impl CastInto<Ptr<QBarSet>>) -> bool[src]

Removes the bar set specified by set from the series and permanently deletes it if the removal succeeds. Returns true if the set was removed.

Calls C++ function: bool QtCharts::QAbstractBarSeries::remove(QtCharts::QBarSet* set).

C++ documentation:

Removes the bar set specified by set from the series and permanently deletes it if the removal succeeds. Returns true if the set was removed.

pub unsafe fn set_bar_width(&self, width: c_double)[src]

Sets the width of the bars of the series to width.

Calls C++ function: void QtCharts::QAbstractBarSeries::setBarWidth(double width).

C++ documentation:

Sets the width of the bars of the series to width.

Note: Setter function for property barWidth.

See also barWidth().

pub unsafe fn set_labels_angle(&self, angle: c_double)[src]

This property holds the angle of the value labels in degrees.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsAngle(double angle).

C++ documentation:

This property holds the angle of the value labels in degrees.

Access functions:

qreal labelsAngle() const
void setLabelsAngle(qreal angle)

Notifier signal:

void labelsAngleChanged(qreal angle)

pub unsafe fn set_labels_format(&self, format: impl CastInto<Ref<QString>>)[src]

This property holds the format used for showing labels in a bar series.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsFormat(const QString& format).

C++ documentation:

This property holds the format used for showing labels in a bar series.

QAbstractBarSeries supports the following format tag:

@valueThe value of the bar

For example, the following usage of the format tags would produce labels that show the value followed by the unit (u):

series->setLabelsFormat("@value u");

By default, the labels show the value of the bar. For the percent bar series, % is added after the value. The labels are shown on the plot area, whereas labels on the edge of the plot area are cut. If the bars are close to each other, the labels may overlap.

Access functions:

QString labelsFormat() const
void setLabelsFormat(const QString &format)

Notifier signal:

void labelsFormatChanged(const QString &format)

See also labelsVisible, labelsPosition, and labelsPrecision.

pub unsafe fn set_labels_position(&self, position: LabelsPosition)[src]

This property holds the position of value labels.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsPosition(QtCharts::QAbstractBarSeries::LabelsPosition position).

C++ documentation:

This property holds the position of value labels.

Access functions:

QAbstractBarSeries::LabelsPosition labelsPosition() const
void setLabelsPosition(QAbstractBarSeries::LabelsPosition position)

Notifier signal:

void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position)

See also labelsVisible and labelsFormat.

pub unsafe fn set_labels_precision(&self, precision: c_int)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This property holds the maximum amount of significant digits shown in value labels.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsPrecision(int precision).

C++ documentation:

This property holds the maximum amount of significant digits shown in value labels.

Default value is 6.

Access functions:

int labelsPrecision() const
void setLabelsPrecision(int precision)

Notifier signal:

void labelsPrecisionChanged(int precision)

pub unsafe fn set_labels_visible_1a(&self, visible: bool)[src]

Sets the visibility of labels in a bar series to visible.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsVisible(bool visible = …).

C++ documentation:

Sets the visibility of labels in a bar series to visible.

Note: Setter function for property labelsVisible.

See also isLabelsVisible().

pub unsafe fn set_labels_visible_0a(&self)[src]

Sets the visibility of labels in a bar series to visible.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsVisible().

C++ documentation:

Sets the visibility of labels in a bar series to visible.

Note: Setter function for property labelsVisible.

See also isLabelsVisible().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn take(&self, set: impl CastInto<Ptr<QBarSet>>) -> bool[src]

Takes a single set from the series. Does not delete the bar set object.

Calls C++ function: bool QtCharts::QAbstractBarSeries::take(QtCharts::QBarSet* set).

C++ documentation:

Takes a single set from the series. Does not delete the bar set object.

Note: The series remains the barset'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]

Calls C++ function: static QString QtCharts::QAbstractBarSeries::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]

Calls C++ function: static QString QtCharts::QAbstractBarSeries::trUtf8(const char* s, const char* c, int n).

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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]

Attaches the axis specified by axis to the series.

Calls C++ function: bool QtCharts::QAbstractSeries::attachAxis(QtCharts::QAbstractAxis* axis).

C++ documentation:

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().

C++ documentation:

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.

C++ documentation:

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]

Detaches the axis specified by axis from the series.

Calls C++ function: bool QtCharts::QAbstractSeries::detachAxis(QtCharts::QAbstractAxis* axis).

C++ documentation:

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().

C++ documentation:

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.

C++ documentation:

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:

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.

C++ documentation:

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.

C++ documentation:

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:

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

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).

C++ documentation:

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).

C++ documentation:

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:

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 = …).

C++ documentation:

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:

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().

C++ documentation:

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:

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 = …).

C++ documentation:

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:

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().

C++ documentation:

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:

pub unsafe fn show(&self)[src]

Sets the visibility of the series to true.

Calls C++ function: void QtCharts::QAbstractSeries::show().

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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:

Trait Implementations

impl CppDeletable for QAbstractBarSeries[src]

unsafe fn delete(&self)[src]

Removes the abstract bar series and the bar sets owned by it.

Calls C++ function: virtual [destructor] void QtCharts::QAbstractBarSeries::~QAbstractBarSeries().

C++ documentation:

Removes the abstract bar series and the bar sets owned by it.

impl Deref for QAbstractBarSeries[src]

type Target = QAbstractSeries

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractSeries[src]

Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QAbstractBarSeries> for QAbstractSeries[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractSeries>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* dynamic_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QAbstractSeries* ptr).

impl DynamicCast<QAbstractBarSeries> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* dynamic_cast<QtCharts::QAbstractBarSeries*>(QObject* ptr).

impl DynamicCast<QBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QBarSeries>[src]

Calls C++ function: QtCharts::QBarSeries* dynamic_cast<QtCharts::QBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QHorizontalBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QHorizontalBarSeries>
[src]

Calls C++ function: QtCharts::QHorizontalBarSeries* dynamic_cast<QtCharts::QHorizontalBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QHorizontalPercentBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QHorizontalPercentBarSeries>
[src]

Calls C++ function: QtCharts::QHorizontalPercentBarSeries* dynamic_cast<QtCharts::QHorizontalPercentBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QHorizontalStackedBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QHorizontalStackedBarSeries>
[src]

Calls C++ function: QtCharts::QHorizontalStackedBarSeries* dynamic_cast<QtCharts::QHorizontalStackedBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QPercentBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QPercentBarSeries>[src]

Calls C++ function: QtCharts::QPercentBarSeries* dynamic_cast<QtCharts::QPercentBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QStackedBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QStackedBarSeries>[src]

Calls C++ function: QtCharts::QStackedBarSeries* dynamic_cast<QtCharts::QStackedBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QAbstractBarSeries> for QAbstractSeries[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractSeries>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QAbstractSeries* ptr).

impl StaticDowncast<QAbstractBarSeries> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QObject* ptr).

impl StaticDowncast<QBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QBarSeries>[src]

Calls C++ function: QtCharts::QBarSeries* static_cast<QtCharts::QBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QHorizontalBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QHorizontalBarSeries>
[src]

Calls C++ function: QtCharts::QHorizontalBarSeries* static_cast<QtCharts::QHorizontalBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QHorizontalPercentBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QHorizontalPercentBarSeries>
[src]

Calls C++ function: QtCharts::QHorizontalPercentBarSeries* static_cast<QtCharts::QHorizontalPercentBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QHorizontalStackedBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QHorizontalStackedBarSeries>
[src]

Calls C++ function: QtCharts::QHorizontalStackedBarSeries* static_cast<QtCharts::QHorizontalStackedBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QPercentBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QPercentBarSeries>
[src]

Calls C++ function: QtCharts::QPercentBarSeries* static_cast<QtCharts::QPercentBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QStackedBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QStackedBarSeries>
[src]

Calls C++ function: QtCharts::QStackedBarSeries* static_cast<QtCharts::QStackedBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticUpcast<QAbstractBarSeries> for QBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QBarSeries>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QBarSeries* ptr).

impl StaticUpcast<QAbstractBarSeries> for QHorizontalBarSeries[src]

unsafe fn static_upcast(
    ptr: Ptr<QHorizontalBarSeries>
) -> Ptr<QAbstractBarSeries>
[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QHorizontalBarSeries* ptr).

impl StaticUpcast<QAbstractBarSeries> for QHorizontalPercentBarSeries[src]

unsafe fn static_upcast(
    ptr: Ptr<QHorizontalPercentBarSeries>
) -> Ptr<QAbstractBarSeries>
[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QHorizontalPercentBarSeries* ptr).

impl StaticUpcast<QAbstractBarSeries> for QHorizontalStackedBarSeries[src]

unsafe fn static_upcast(
    ptr: Ptr<QHorizontalStackedBarSeries>
) -> Ptr<QAbstractBarSeries>
[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QHorizontalStackedBarSeries* ptr).

impl StaticUpcast<QAbstractBarSeries> for QPercentBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QPercentBarSeries>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QPercentBarSeries* ptr).

impl StaticUpcast<QAbstractBarSeries> for QStackedBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QStackedBarSeries>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QStackedBarSeries* ptr).

impl StaticUpcast<QAbstractSeries> for QAbstractBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QAbstractSeries>[src]

Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticUpcast<QObject> for QAbstractBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QAbstractBarSeries* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.