QwtPlotTradingCurve(3)

πŸ’… QwtPlotTradingCurve(3) β€” Library Functions Manual

okay so this is a page from the Library Functions Manual, bestie, and today's main character is QwtPlotTradingCurve. Buckle in, it's a long one πŸŽ€


✨ NAME ✨

QwtPlotTradingCurve β€” literally a whole vibe of a class that illustrates movements in the price of a financial instrument over time. yes, it's giving stock chart energy πŸ“ˆ


🌸 SYNOPSIS 🌸

#include <qwt_plot_tradingcurve.h>

It inherits QwtPlotSeriesItem, and QwtSeriesStore< QwtOHLCSample >. so it's got the whole family tree going on πŸ’–

πŸ¦‹ Public Types

  • enum SymbolStyle { NoSymbol = -1, Bar, CandleStick, UserSymbol = 100 } β€” the symbol styles, i.e. how each little data blip gets drawn.
  • enum Direction { Increasing, Decreasing } β€” the direction of a price movement.
  • enum PaintAttribute { ClipSymbols = 0x01 } β€” drawing-algorithm modifiers.
  • typedef QFlags< PaintAttribute > PaintAttributes β€” OR 'em all together.

Public Types inherited from QwtPlotItem

  • enum RttiValues { Rtti_PlotItem = 0, Rtti_PlotGrid, Rtti_PlotScale, Rtti_PlotLegend, Rtti_PlotMarker, Rtti_PlotCurve, Rtti_PlotSpectroCurve, Rtti_PlotIntervalCurve, Rtti_PlotHistogram, Rtti_PlotSpectrogram, Rtti_PlotGraphic, Rtti_PlotTradingCurve, Rtti_PlotBarChart, Rtti_PlotMultiBarChart, Rtti_PlotShape, Rtti_PlotTextLabel, Rtti_PlotZone, Rtti_PlotVectorField, Rtti_PlotUserItem = 1000 } β€” runtime type information, iykyk.
  • enum ItemAttribute { Legend = 0x01, AutoScale = 0x02, Margins = 0x04 } β€” plot item attributes.
  • enum ItemInterest { ScaleInterest = 0x01, LegendInterest = 0x02 } β€” plot item interests.
  • enum RenderHint { RenderAntialiased = 0x1 } β€” render hints.
  • typedef QFlags< ItemAttribute > ItemAttributes
  • typedef QFlags< ItemInterest > ItemInterests
  • typedef QFlags< RenderHint > RenderHints

🫢 Public Member Functions

  • QwtPlotTradingCurve (const QString &title=QString()) β€” constructor, slay.
  • QwtPlotTradingCurve (const QwtText &title) β€” constructor, the QwtText edition.
  • virtual ~QwtPlotTradingCurve () β€” Destructor.
  • virtual int rtti () const override β€” the runtime type ID.
  • void setPaintAttribute (PaintAttribute, bool on=true) β€” toggle a paint attribute.
  • bool testPaintAttribute (PaintAttribute) const β€” check whether it's on.
  • void setSamples (const QVector< QwtOHLCSample > &) β€” drop in your samples from a vector.
  • void setSamples (QwtSeriesData< QwtOHLCSample > *) β€” or from a series-data pointer.
  • void setSymbolStyle (SymbolStyle style) β€” pick the symbol style.
  • SymbolStyle symbolStyle () const β€” read back which style you picked.
  • void setSymbolPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) β€” set the pen by colour/width/style.
  • void setSymbolPen (const QPen &) β€” Set the symbol pen.
  • QPen symbolPen () const β€” grab the current pen.
  • void setSymbolBrush (Direction, const QBrush &) β€” brush per direction.
  • QBrush symbolBrush (Direction) const β€” read the brush back for a direction.
  • void setSymbolExtent (double) β€” Set the extent of the symbol.
  • double symbolExtent () const β€” read that extent.
  • void setMinSymbolWidth (double) β€” floor for the symbol width.
  • double minSymbolWidth () const β€” read the floor.
  • void setMaxSymbolWidth (double) β€” ceiling for the symbol width.
  • double maxSymbolWidth () const β€” read the ceiling.
  • virtual void drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const β€” override, draws the series.
  • virtual QRectF boundingRect () const override β€” the bounding rect.
  • virtual QwtGraphic legendIcon (int index, const QSizeF &) const override β€” the legend icon.

Public Member Functions inherited from QwtPlotSeriesItem

  • QwtPlotSeriesItem (const QString &title=QString()) β€” constructor.
  • QwtPlotSeriesItem (const QwtText &title) β€” constructor.
  • virtual ~QwtPlotSeriesItem () β€” Destructor.
  • void setOrientation (Qt::Orientation) β€” set the orientation.
  • Qt::Orientation orientation () const β€” read the orientation.
  • virtual void draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const override β€” Draw the complete series.
  • virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) override β€” Update the item to changes of the axes scale division.

Public Member Functions inherited from QwtPlotItem

(this is the long list, bestie, but every single one matters πŸ’œ)

  • QwtPlotItem () β€” default constructor.
  • QwtPlotItem (const QString &title) β€” constructor with a string title.
  • QwtPlotItem (const QwtText &title) β€” constructor with a QwtText title.
  • virtual ~QwtPlotItem () β€” Destroy the QwtPlotItem.
  • void attach (QwtPlot *plot) β€” Attach the item to a plot.
  • void detach () β€” This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
  • QwtPlot * plot () const β€” Return attached plot.
  • void setTitle (const QString &title) β€” set the title as a string.
  • void setTitle (const QwtText &title) β€” set the title as QwtText.
  • const QwtText & title () const β€” read the title.
  • void setItemAttribute (ItemAttribute, bool on=true) β€” toggle an item attribute.
  • bool testItemAttribute (ItemAttribute) const β€” check an item attribute.
  • void setItemInterest (ItemInterest, bool on=true) β€” toggle an item interest.
  • bool testItemInterest (ItemInterest) const β€” check an item interest.
  • void setRenderHint (RenderHint, bool on=true) β€” toggle a render hint.
  • bool testRenderHint (RenderHint) const β€” check a render hint.
  • void setRenderThreadCount (uint numThreads) β€” how many threads to render with.
  • uint renderThreadCount () const β€” read that thread count.
  • void setLegendIconSize (const QSize &) β€” set the legend icon size.
  • QSize legendIconSize () const β€” read the legend icon size.
  • double z () const β€” read the z value.
  • void setZ (double z) β€” Set the z value.
  • void show () β€” Show the item.
  • void hide () β€” Hide the item.
  • virtual void setVisible (bool) β€” set visibility.
  • bool isVisible () const β€” is it visible? πŸ‘€
  • void setAxes (QwtAxisId xAxis, QwtAxisId yAxis) β€” set both axes at once.
  • void setXAxis (QwtAxisId) β€” set the x axis.
  • QwtAxisId xAxis () const β€” Return xAxis.
  • void setYAxis (QwtAxisId) β€” set the y axis.
  • QwtAxisId yAxis () const β€” Return yAxis.
  • virtual void itemChanged () β€” notify that the item changed.
  • virtual void legendChanged () β€” notify that the legend changed.
  • virtual void getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const β€” Calculate a hint for the canvas margin.
  • virtual void updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) β€” Update the item to changes of the legend info.
  • QRectF scaleRect (const QwtScaleMap &, const QwtScaleMap &) const β€” Calculate the bounding scale rectangle of 2 maps.
  • QRectF paintRect (const QwtScaleMap &, const QwtScaleMap &) const β€” Calculate the bounding paint rectangle of 2 maps.
  • virtual QList< QwtLegendData > legendData () const β€” Return all information, that is needed to represent the item on the legend.

Public Member Functions inherited from QwtAbstractSeriesStore

  • virtual ~QwtAbstractSeriesStore () β€” Destructor.

Public Member Functions inherited from QwtSeriesStore< QwtOHLCSample >

  • QwtSeriesStore () β€” Constructor, and the store contains no series.
  • ~QwtSeriesStore () β€” Destructor.
  • void setData (QwtSeriesData< QwtOHLCSample > *series) β€” set the series data.
  • QwtSeriesData< QwtOHLCSample > * data () β€” get the series data.
  • QwtOHLCSample sample (int index) const β€” grab one sample by index.
  • virtual size_t dataSize () const override β€” how many samples.
  • virtual QRectF dataRect () const override β€” the data rect.
  • virtual void setRectOfInterest (const QRectF &rect) override β€” set the rect of interest.
  • QwtSeriesData< QwtOHLCSample > * swapData (QwtSeriesData< QwtOHLCSample > *series) β€” swap the data out.

🧚 Protected Member Functions

  • void init () β€” Initialize internal members.
  • virtual void drawSymbols (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const β€” draws the symbols.
  • virtual void drawUserSymbol (QPainter *, SymbolStyle, const QwtOHLCSample &, Qt::Orientation, bool inverted, double symbolWidth) const β€” Draw a symbol for a symbol style >= UserSymbol.
  • void drawBar (QPainter *, const QwtOHLCSample &, Qt::Orientation, bool inverted, double width) const β€” Draw a bar.
  • void drawCandleStick (QPainter *, const QwtOHLCSample &, Qt::Orientation, double width) const β€” Draw a candle stick.
  • virtual double scaledSymbolWidth (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const β€” compute the scaled symbol width.

Protected Member Functions inherited from QwtPlotSeriesItem

  • virtual void dataChanged () override β€” dataChanged() indicates, that the series has been changed.

Protected Member Functions inherited from QwtPlotItem

  • QwtGraphic defaultIcon (const QBrush &, const QSizeF &) const β€” Return a default icon from a brush.

🌈 Detailed Description 🌈

QwtPlotTradingCurve illustrates movements in the price of a financial instrument over time. iconic behavior honestly πŸ’…

It supports candlestick or bar ( OHLC ) charts that are used in the domain of technical analysis. so yes, it's the finance-girlie chart class.

While the length ( height or width depending on orientation() ) of each symbol depends on the corresponding OHLC sample, the size of the other dimension can be controlled using:

  • setSymbolExtent()
  • setSymbolMinWidth()
  • setSymbolMaxWidth()

The extent is a size in scale coordinates, so that the symbol width is increasing when the plot is zoomed in. Minimum/Maximum width is in widget coordinates independent from the zoom level. When setting the minimum and maximum to the same value, the width of the symbol is fixed. no cap, that's the whole trick πŸŽ€

Definition at line 37 of file qwt_plot_tradingcurve.h.

πŸ“ Member Typedef Documentation πŸ“

typedef QFlags<PaintAttribute > QwtPlotTradingCurve::PaintAttributes

An ORed combination of PaintAttribute values. stack 'em, bestie ✨

Definition at line 101 of file qwt_plot_tradingcurve.h.

πŸ‘‘ Member Enumeration Documentation πŸ‘‘

enum QwtPlotTradingCurve::Direction

Direction of a price movement. which way did the money go 😭

Enumerator

  • Increasing β€” The closing price is higher than the opening price. we love a glow-up πŸ“ˆ
  • Decreasing β€” The closing price is lower than the opening price. oof πŸ’€
Definition at line 82 of file qwt_plot_tradingcurve.h.

enum QwtPlotTradingCurve::PaintAttribute

Attributes to modify the drawing algorithm.

See also: setPaintAttribute(), testPaintAttribute()

Enumerator

  • ClipSymbols β€” Check if a symbol is on the plot canvas before painting it.
Definition at line 95 of file qwt_plot_tradingcurve.h.

enum QwtPlotTradingCurve::SymbolStyle

Symbol styles. The default setting is QwtPlotSeriesItem::CandleStick. (yes, candle is the default, it's giving classic πŸ•―οΈ)

See also: setSymbolStyle(), symbolStyle()

Enumerator

  • NoSymbol β€” Nothing is displayed. literally nothing, ghost mode πŸ‘»
  • Bar β€” A line on the chart shows the price range (the highest and lowest prices) over one unit of time, e.g. one day or one hour. Tick marks project from each side of the line indicating the opening and closing price.
  • CandleStick β€” The range between opening/closing price are displayed as a filled box. The fill brush depends on the direction of the price movement. The box is connected to the highest/lowest values by lines.
  • UserSymbol β€” SymbolTypes >= UserSymbol are displayed by drawUserSymbol(), that needs to be overloaded and implemented in derived curve classes. DIY time πŸ› οΈ

See also: drawUserSymbol()

Definition at line 48 of file qwt_plot_tradingcurve.h.

🌸 Constructor & Destructor Documentation 🌸

QwtPlotTradingCurve::QwtPlotTradingCurve (const QString & title = QString()) β€” [explicit]

Constructor. the origin story ✨

Parameters

  • title β€” Title of the curve
Definition at line 70 of file qwt_plot_tradingcurve.cpp.

QwtPlotTradingCurve::QwtPlotTradingCurve (const QwtText & title) β€” [explicit]

Constructor. same energy, QwtText flavour 🫢

Parameters

  • title β€” Title of the curve
Definition at line 60 of file qwt_plot_tradingcurve.cpp.

QwtPlotTradingCurve::~QwtPlotTradingCurve () β€” [virtual]

Destructor. and that's the end of that chapter πŸ’…

Definition at line 77 of file qwt_plot_tradingcurve.cpp.

(part 1 done β€” more incoming, don't go anywhere bestie πŸ¦‹)

πŸ’… MEMBER FUNCTION DOCUMENTATION πŸ’…

🫢 boundingRect() β€” the bounding-box baddie

QRectF QwtPlotTradingCurve::boundingRect () const

[override], [virtual]

Returns: Bounding rectangle of all samples. For an empty series the rectangle is invalid.

Reimplemented from QwtPlotSeriesItem.

Definition: at line 365 of file qwt_plot_tradingcurve.cpp.


πŸ•―οΈ drawBar() β€” bar-drawing time, bestie

void QwtPlotTradingCurve::drawBar (QPainter * painter, const QwtOHLCSample & sample, Qt::Orientation orientation, bool inverted, double width) const

[protected]

Draw a bar. Yes, literally that. Slay.

Parameters:

  • painter β€” Qt painter, initialized with pen/brush
  • sample β€” Sample, already translated into paint device coordinates
  • orientation β€” Vertical or horizontal
  • inverted β€” When inverted is false the open tick is painted to the left/top, otherwise it is painted right/bottom. The close tick is painted in the opposite direction of the open tick. (The source text has a lil echo here β€” β€œpainted in the opposite direction of the open tick. painted in the opposite d opposite direction.” β€” but the meaning is still the same: close tick goes the other way πŸ’…)
  • width β€” Width or height of the candle, depending on the orientation

See also: Bar

Definition: at line 562 of file qwt_plot_tradingcurve.cpp.


πŸŽ€ drawCandleStick() β€” candle-core

void QwtPlotTradingCurve::drawCandleStick (QPainter * painter, const QwtOHLCSample & sample, Qt::Orientation orientation, double width) const

[protected]

Draw a candle stick. That’s the whole assignment, and she ate.

Parameters:

  • painter β€” Qt painter, initialized with pen/brush
  • sample β€” Samples already translated into paint device coordinates
  • orientation β€” Vertical or horizontal
  • width β€” Width or height of the candle, depending on the orientation

See also: CandleStick

Definition: at line 601 of file qwt_plot_tradingcurve.cpp.


🌈 drawSeries() β€” the main-character paint pass

void QwtPlotTradingCurve::drawSeries (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect, int from, int to) const

[override], [virtual]

Draw an interval of the curve. This is the glow-up moment.

Parameters:

  • painter β€” Painter
  • xMap β€” Maps x-values into pixel coordinates.
  • yMap β€” Maps y-values into pixel coordinates.
  • canvasRect β€” Contents rectangle of the canvas
  • from β€” Index of the first point to be painted
  • to β€” Index of the last point to be painted. If to < 0 the curve will be painted to its last point.

See also: drawSymbols()

Implements QwtPlotSeriesItem.

Definition: at line 387 of file qwt_plot_tradingcurve.cpp.


πŸ¦‹ drawSymbols() β€” symbol appreciation station

void QwtPlotTradingCurve::drawSymbols (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect, int from, int to) const

[protected], [virtual]

Draw symbols. Short, sweet, iconic.

Parameters:

  • painter β€” Painter
  • xMap β€” x map
  • yMap β€” y map
  • canvasRect β€” Contents rectangle of the canvas
  • from β€” Index of the first point to be painted
  • to β€” Index of the last point to be painted

See also: drawSeries()

Definition: at line 420 of file qwt_plot_tradingcurve.cpp.


🧚 drawUserSymbol() β€” the β€œyou customize it, bestie” hook

void QwtPlotTradingCurve::drawUserSymbol (QPainter * painter, SymbolStyle symbolStyle, const QwtOHLCSample & sample, Qt::Orientation orientation, bool inverted, double symbolWidth) const

[protected], [virtual]

Draw a symbol for a symbol style >= UserSymbol. The implementation does nothing and is intended to be overloaded. So she’s a blank canvas β€” literally the point.

Parameters:

  • painter β€” Qt painter, initialized with pen/brush
  • symbolStyle β€” Symbol style
  • sample β€” Samples already translated into paint device coordinates
  • orientation β€” Vertical or horizontal
  • inverted β€” True, when the opposite scale ( Qt::Vertical: x, Qt::Horizontal: y ) is increasing in the opposite direction as QPainter coordinates.
  • symbolWidth β€” Width of the symbol in paint device coordinates

Definition: at line 534 of file qwt_plot_tradingcurve.cpp.


✨ init() β€” behind-the-scenes setup

void QwtPlotTradingCurve::init ()

[protected]

Initialize internal members. Tiny function, big β€œget ready” energy.

Definition: at line 83 of file qwt_plot_tradingcurve.cpp.


πŸ‘‘ legendIcon() β€” icon behavior

QwtGraphic QwtPlotTradingCurve::legendIcon (int index, const QSizeF & size) const

[override], [virtual]

Returns: A rectangle filled with the color of the symbol pen

Parameters:

  • index β€” Index of the legend entry ( usually there is only one )
  • size β€” Icon size

See also: setLegendIconSize(), legendData()

Reimplemented from QwtPlotItem.

Definition: at line 642 of file qwt_plot_tradingcurve.cpp.


🌸 maxSymbolWidth() β€” the width ceiling

double QwtPlotTradingCurve::maxSymbolWidth () const

Returns: Maximum for the symbol width

See also: setMaxSymbolWidth(), minSymbolWidth(), symbolExtent()

Definition: at line 356 of file qwt_plot_tradingcurve.cpp.


πŸ“ minSymbolWidth() β€” the width floor

double QwtPlotTradingCurve::minSymbolWidth () const

Returns: Minmum for the symbol width β€” yes, β€œMinmum” is the spelling in the docs, and we respect the typo’s main-character moment πŸ’…

See also: setMinSymbolWidth(), maxSymbolWidth(), symbolExtent()

Definition: at line 328 of file qwt_plot_tradingcurve.cpp.


⭐ rtti() β€” runtime type identification, but make it fashion

int QwtPlotTradingCurve::rtti () const

[override], [virtual]

Returns: QwtPlotItem::Rtti_PlotTradingCurve

Reimplemented from QwtPlotItem.

Definition: at line 95 of file qwt_plot_tradingcurve.cpp.


πŸ’œ scaledSymbolWidth() β€” width math, but in paint coordinates

double QwtPlotTradingCurve::scaledSymbolWidth (const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect) const

[protected], [virtual]

Calculate the symbol width in paint coordinates.

The width is calculated by scaling the symbol extent into paint device coordinates bounded by the minimum/maximum symbol width.

Parameters:

  • xMap β€” Maps x-values into pixel coordinates.
  • yMap β€” Maps y-values into pixel coordinates.
  • canvasRect β€” Contents rectangle of the canvas

Returns: Symbol width in paint coordinates

See also: symbolExtent(), minSymbolWidth(), maxSymbolWidth()

Definition: at line 664 of file qwt_plot_tradingcurve.cpp.


πŸ’– setMaxSymbolWidth() β€” put a cap on it

void QwtPlotTradingCurve::setMaxSymbolWidth (double width)

Set a maximum for the symbol width.

A value <= 0.0 means an unlimited width.

Parameters:

  • width β€” Width in paint device coordinates

See also: maxSymbolWidth(), setMinSymbolWidth(), setSymbolExtent()

Definition: at line 341 of file qwt_plot_tradingcurve.cpp.


πŸŽ€ setMinSymbolWidth() β€” floor game strong

void QwtPlotTradingCurve::setMinSymbolWidth (double width)

Set a minimum for the symbol width.

Parameters:

  • width β€” Width in paint device coordinates

See also: minSymbolWidth(), setMaxSymbolWidth(), setSymbolExtent()

Definition: at line 312 of file qwt_plot_tradingcurve.cpp.


πŸ”₯ setPaintAttribute() β€” switch the vibe on or off

void QwtPlotTradingCurve::setPaintAttribute (PaintAttribute attribute, bool on = true)

Specify an attribute how to draw the curve.

Parameters:

  • attribute β€” Paint attribute
  • on β€” On/Off

See also: testPaintAttribute()

Definition: at line 107 of file qwt_plot_tradingcurve.cpp.


🌈 setSamples() β€” vector edition

void QwtPlotTradingCurve::setSamples (const QVector< QwtOHLCSample > & samples)

Initialize data with an array of samples.

Parameters:

  • samples β€” Vector of samples

See also: QwtPlotSeriesItem::setData()

Definition: at line 132 of file qwt_plot_tradingcurve.cpp.


🫢 setSamples() β€” data-object edition

void QwtPlotTradingCurve::setSamples (QwtSeriesData< QwtOHLCSample > * data)

Assign a series of samples.

setSamples() is just a wrapper for setData() without any additional value β€” beside that it is easier to find for the developer. Convenience queen.

Parameters:

  • data β€” Data
Warning: The item takes ownership of the data object, deleting it when its not used anymore. So do not double-free her, bestie 😭

Definition: at line 148 of file qwt_plot_tradingcurve.cpp.


🎨 setSymbolBrush() β€” fill the candle body, direction by direction

void QwtPlotTradingCurve::setSymbolBrush (Direction direction, const QBrush & brush)

Set the symbol brush.

Parameters:

  • direction β€” Direction type
  • brush β€” Brush used to fill the body of all candlestick symbols with the direction

See also: symbolBrush(), setSymbolPen()

Definition: at line 238 of file qwt_plot_tradingcurve.cpp.


🧚 setSymbolExtent() β€” how wide, in scale coords

void QwtPlotTradingCurve::setSymbolExtent (double extent)

Set the extent of the symbol. The width of the symbol is given in scale coordinates. When painting a symbol the width is scaled into paint device coordinates by scaledSymbolWidth(). The scaled width is bounded by minSymbolWidth(), maxSymbolWidth().

Parameters:

  • extent β€” Symbol width in scale coordinates

See also: symbolExtent(), scaledSymbolWidth(), setMinSymbolWidth(), setMaxSymbolWidth()

Definition: at line 284 of file qwt_plot_tradingcurve.cpp.


πŸ’… setSymbolPen() β€” color/width/style edition

void QwtPlotTradingCurve::setSymbolPen (const QColor & color, qreal width = 0.0, Qt::PenStyle style = Qt::SolidLine)

Build and assign the symbol pen.

In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it non cosmetic ( see QPen::isCosmetic() ). This method has been introduced to hide this incompatibility.

Parameters:

  • color β€” Pen color
  • width β€” Pen width
  • style β€” Pen style

See also: pen(), brush()

Definition: at line 195 of file qwt_plot_tradingcurve.cpp.


πŸ–ŠοΈ setSymbolPen() β€” straight-up QPen edition

void QwtPlotTradingCurve::setSymbolPen (const QPen & pen)

Set the symbol pen. The symbol pen is used for rendering the lines of the bar or candlestick symbols.

See also: symbolPen(), setSymbolBrush()

Definition: at line 209 of file qwt_plot_tradingcurve.cpp.


πŸ‘‘ setSymbolStyle() β€” choose your fighter

void QwtPlotTradingCurve::setSymbolStyle (SymbolStyle style)

Set the symbol style.

Parameters:

  • style β€” Symbol style

See also: symbolStyle(), setSymbolExtent(), setSymbolPen(), setSymbolBrush()

Definition: at line 162 of file qwt_plot_tradingcurve.cpp.


🎨 symbolBrush() β€” get that direction’s brush

QBrush QwtPlotTradingCurve::symbolBrush (Direction direction) const

Parameters:

  • direction β€” the page just says β€œdirection” here and dips, but it’s the direction you’re asking about 😭

Returns: Brush used to fill the body of all candlestick symbols with the direction

See also: setSymbolPen(), symbolBrush() β€” yes, she references herself. Iconic.

Definition: at line 262 of file qwt_plot_tradingcurve.cpp.


πŸ“ symbolExtent() β€” width in scale coordinates

double QwtPlotTradingCurve::symbolExtent () const

Returns: Extent of a symbol in scale coordinates

See also: setSymbolExtent(), scaledSymbolWidth(), minSymbolWidth(), maxSymbolWidth()

Definition: at line 301 of file qwt_plot_tradingcurve.cpp.


πŸ–‹οΈ symbolPen() β€” the pen reveal

QPen QwtPlotTradingCurve::symbolPen () const

Returns: Symbol pen

See also: setSymbolPen(), symbolBrush()

Definition: at line 224 of file qwt_plot_tradingcurve.cpp.


πŸ¦‹ symbolStyle() β€” current style check

QwtPlotTradingCurve::SymbolStyle QwtPlotTradingCurve::symbolStyle () const

Returns: Symbol style

See also: setSymbolStyle(), symbolExtent(), symbolPen(), symbolBrush()

Definition: at line 177 of file qwt_plot_tradingcurve.cpp.


βœ… testPaintAttribute() β€” is this attribute enabled?

bool QwtPlotTradingCurve::testPaintAttribute (PaintAttribute attribute) const

Returns: True, when attribute is enabled

See also: PaintAttribute, setPaintAttribute()

Definition: at line 120 of file qwt_plot_tradingcurve.cpp.


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code.


πŸ’– footer energy: Qwt User's Guide Β· QwtPlotTradingCurve(3) Β· auto-generated from the source code, with the version/date footer honored right here in this cute lil’ sign-off instead of being copied. Mwah πŸ’‹

πŸ“¦ where this page comes from