Skip to content

Class QAccelPlot::Border

ClassList > QAccelPlot > Border

Outline color and width, exposed as a border grouped property, for exampleborder.width: 1 .More...

  • #include <Border.hpp>

Inherits the following classes: QObject

Inheritance diagram

flowchart TB
  classQAccelPlot_1_1Border["QAccelPlot::Border"]

  external_base_classQAccelPlot_1_1Border_1["QObject"]
  external_base_classQAccelPlot_1_1Border_1 --> classQAccelPlot_1_1Border

Public Properties

Type Name
property QML_ANONYMOUSQColor color
Outline color.
property qreal width
Outline width in pixels, clamped to at least 0. 0 draws no outline.

Public Signals

Type Name
signal void colorChanged
Emitted when the color property changes.
signal void widthChanged
Emitted when the width property changes.

Public Functions

Type Name
Border (const QColor & color, qreal width, QObject * parent=nullptr)
Constructs a border with the given default color and__width , owned by__parent .
QColor color () const
Returns the outline color.
void setColor (const QColor & color)
Sets the outline color to color .
void setWidth (qreal width)
Sets the outline width to width pixels. Negative values are clamped to 0.
qreal width () const
Returns the outline width in pixels.

Detailed Description

Used by PlotView, RectangleSeries, BarSeries, PlotView.rectangleZoom, SelectionTool, and ColorBar. Each owner documents its defaults and where the outline is drawn.

Public Properties Documentation

property color

Outline color.

QML_ANONYMOUSQColor QAccelPlot::Border::color;


property width

Outline width in pixels, clamped to at least 0. 0 draws no outline.

qreal QAccelPlot::Border::width;


Public Signals Documentation

signal colorChanged

Emitted when the color property changes.

void QAccelPlot::Border::colorChanged;


signal widthChanged

Emitted when the width property changes.

void QAccelPlot::Border::widthChanged;


Public Functions Documentation

function Border

Constructs a border with the given default color and__width , owned by__parent .

explicit QAccelPlot::Border::Border (
    const QColor & color,
    qreal width,
    QObject * parent=nullptr
) 


function color

Returns the outline color.

QColor QAccelPlot::Border::color () const


function setColor

Sets the outline color to color .

void QAccelPlot::Border::setColor (
    const QColor & color
) 


function setWidth

Sets the outline width to width pixels. Negative values are clamped to 0.

void QAccelPlot::Border::setWidth (
    qreal width
) 


function width

Returns the outline width in pixels.

qreal QAccelPlot::Border::width () const



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/Border.hpp