|
| static QColor | color (const QwtPlotItem *item, const QColor &defaultColor=QColor()) |
| | Get the representative color of a plot item
|
| |
| static bool | setColor (QwtPlotItem *item, const QColor &color) |
| | Set the color of a plot item
|
| |
| static QPen | pen (const QwtPlotItem *item) |
| | Get the pen of a plot item
|
| |
| static bool | setPen (QwtPlotItem *item, const QPen &pen) |
| | Set the pen of a plot item
|
| |
| static QBrush | brush (const QwtPlotItem *item) |
| | Get the brush of a plot item
|
| |
| static bool | setBrush (QwtPlotItem *item, const QBrush &brush) |
| | Set the brush of a plot item
|
| |
| static void | setSymbol (QwtPlotCurve *curve, QwtSymbol::Style style, const QSize &size=QSize(8, 8)) |
| | Set a symbol on a curve with style and size
|
| |
| static void | setSymbol (QwtPlotCurve *curve, QwtSymbol::Style style, const QColor &color, const QSize &size=QSize(8, 8)) |
| | Set a symbol on a curve with style, color and size
|
| |
| static void | setLineStyle (QwtPlotCurve *curve, Qt::PenStyle style, qreal width=0.0) |
| | Set curve line pen style and width
|
| |
| static qreal | recommendPenWidth (int pointCount) |
| | Recommend a pen width based on the number of data points
|
| |
| static void | forceReplot (QwtPlot *plot) |
| | Force an immediate replot even when autoReplot is disabled
|
| |
Utility class for reading and writing visual style properties of QwtPlotItem
QwtPlotStyling provides type-safe static methods to get or set the color, pen, brush, and symbol of any QwtPlotItem, dispatching through the item's rtti to call the correct type-specific API.
Also provides convenience methods for common styling operations such as setting a curve's symbol or recommending pen widths based on data density.
QColor c = Qwt::QwtPlotStyling::color(item);
Qwt::QwtPlotStyling::setColor(item, Qt::red);
Base class for items on the plot canvas
Definition qwt_plot_item.h:85
@ Ellipse
Ellipse or circle
Definition qwt_symbol.h:63
- 参见
- QwtPlotItemInfo, QwtPlotDataAccess