QwtPlot 的替代画布,派生自 QOpenGLWidget
更多...
#include <qwt_plot_opengl_canvas.h>
|
| virtual void | paintEvent (QPaintEvent *) override |
| | Paint event
|
| |
| virtual void | initializeGL () override |
| | No operation - reserved for some potential use in the future
|
| |
| virtual void | paintGL () override |
| | Paint the plot
|
| |
| virtual void | resizeGL (int width, int height) override |
| | No operation - reserved for some potential use in the future
|
| |
| void | replot () |
| | 使绘制缓存失效并重绘画布
|
| |
|
void | draw (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
| QWidget * | canvasWidget () |
| |
| const QWidget * | canvasWidget () const |
| |
| virtual void | drawFocusIndicator (QPainter *) |
| | Draw the focus indication
|
| |
| virtual void | drawBorder (QPainter *) |
| | Draw the border of the canvas
|
| |
|
virtual void | drawBackground (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
|
void | fillBackground (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
|
void | drawCanvas (QPainter *) |
| | Draw the plot to the canvas
|
| |
|
void | drawStyled (QPainter *, bool) |
| | Helper function for the derived plot canvas
|
| |
|
void | drawUnstyled (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
| QPainterPath | canvasBorderPath (const QRect &rect) const |
| |
|
void | updateStyleSheetInfo () |
| | Update the cached information about the current style sheet
|
| |
|
|
QFrame::Shadow | frameShadow |
| |
|
QFrame::Shape | frameShape |
| |
|
int | lineWidth |
| |
|
int | midLineWidth |
| |
|
int | frameWidth |
| |
|
QRect | frameRect |
| |
|
double | borderRadius |
| |
QwtPlot 的替代画布,派生自 QOpenGLWidget
◆ QwtPlotOpenGLCanvas() [1/2]
| QwtPlotOpenGLCanvas::QwtPlotOpenGLCanvas |
( |
QwtPlot * |
plot = nullptr | ) |
|
|
explicit |
◆ QwtPlotOpenGLCanvas() [2/2]
| QwtPlotOpenGLCanvas::QwtPlotOpenGLCanvas |
( |
const QSurfaceFormat & |
format, |
|
|
QwtPlot * |
plot = nullptr |
|
) |
| |
|
explicit |
◆ ~QwtPlotOpenGLCanvas()
| QwtPlotOpenGLCanvas::~QwtPlotOpenGLCanvas |
( |
| ) |
|
|
virtual |
◆ borderPath()
| QPainterPath QwtPlotOpenGLCanvas::borderPath |
( |
const QRect & |
rect | ) |
const |
◆ event()
| bool QwtPlotOpenGLCanvas::event |
( |
QEvent * |
event | ) |
|
|
overridevirtual |
处理事件
Qt 事件处理器,处理 QEvent::PolishRequest 和 QEvent::StyleChange
◆ initializeGL()
| void QwtPlotOpenGLCanvas::initializeGL |
( |
| ) |
|
|
overrideprotectedvirtual |
No operation - reserved for some potential use in the future
◆ invalidateBackingStore()
| void QwtPlotOpenGLCanvas::invalidateBackingStore |
( |
| ) |
|
|
overridevirtual |
◆ paintEvent()
| void QwtPlotOpenGLCanvas::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ paintGL()
| void QwtPlotOpenGLCanvas::paintGL |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ replot
| void QwtPlotOpenGLCanvas::replot |
( |
| ) |
|
|
slot |
◆ resizeGL()
| void QwtPlotOpenGLCanvas::resizeGL |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
overrideprotectedvirtual |
No operation - reserved for some potential use in the future
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_opengl_canvas.h
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_opengl_canvas.cpp