| Qwt User's Guide
    6.1.3
    | 
An alternative canvas for a QwtPlot derived from QGLWidget. More...
#include <qwt_plot_glcanvas.h>

| Public Types | |
| enum | Shadow { Plain = QFrame::Plain, Raised = QFrame::Raised, Sunken = QFrame::Sunken } | 
| Frame shadow.  More... | |
| enum | Shape { NoFrame = QFrame::NoFrame, Box = QFrame::Box, Panel = QFrame::Panel } | 
| Frame shape.  More... | |
| Public Slots | |
| void | replot () | 
| Calls repaint() | |
| Public Member Functions | |
| QwtPlotGLCanvas (QwtPlot *=NULL) | |
| Constructor.  More... | |
| virtual | ~QwtPlotGLCanvas () | 
| Destructor. | |
| void | setFrameStyle (int style) | 
| int | frameStyle () const | 
| void | setFrameShadow (Shadow) | 
| Shadow | frameShadow () const | 
| void | setFrameShape (Shape) | 
| Shape | frameShape () const | 
| void | setLineWidth (int) | 
| int | lineWidth () const | 
| void | setMidLineWidth (int) | 
| int | midLineWidth () const | 
| int | frameWidth () const | 
| QRect | frameRect () const | 
| Q_INVOKABLE QPainterPath | borderPath (const QRect &) const | 
| virtual bool | event (QEvent *) | 
| Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) | 
| virtual void | drawBackground (QPainter *) | 
| virtual void | drawBorder (QPainter *) | 
| virtual void | drawItems (QPainter *) | 
An alternative canvas for a QwtPlot derived from QGLWidget.
QwtPlotGLCanvas implements the very basics to act as canvas inside of a QwtPlot widget. It might be extended to a full featured alternative to QwtPlotCanvas in a future version of Qwt.
Even if QwtPlotGLCanvas is not derived from QFrame it imitates its API. When using style sheets it supports the box model - beside backgrounds with rounded borders.
Frame shape.
Unfortunately it is not possible to use QFrame::Shape as a property of a widget that is not derived from QFrame. The following enum is made for the designer only. It is safe to use QFrame::Shadow instead.
| 
 | explicit | 
| QPainterPath QwtPlotGLCanvas::borderPath | ( | const QRect & | rect | ) | const | 
| 
 | protectedvirtual | 
Draw the background of the canvas
| painter | Painter | 
| 
 | protectedvirtual | 
Draw the border of the canvas
| painter | Painter | 
| 
 | protectedvirtual | 
| 
 | virtual | 
Qt event handler for QEvent::PolishRequest and QEvent::StyleChange
| event | Qt Event | 
| QRect QwtPlotGLCanvas::frameRect | ( | ) | const | 
| QwtPlotGLCanvas::Shadow QwtPlotGLCanvas::frameShadow | ( | ) | const | 
| QwtPlotGLCanvas::Shape QwtPlotGLCanvas::frameShape | ( | ) | const | 
| int QwtPlotGLCanvas::frameStyle | ( | ) | const | 
| int QwtPlotGLCanvas::frameWidth | ( | ) | const | 
| int QwtPlotGLCanvas::lineWidth | ( | ) | const | 
| int QwtPlotGLCanvas::midLineWidth | ( | ) | const | 
| 
 | protectedvirtual | 
| void QwtPlotGLCanvas::setFrameShadow | ( | Shadow | shadow | ) | 
Set the frame shadow
| shadow | Frame shadow | 
| void QwtPlotGLCanvas::setFrameShape | ( | Shape | shape | ) | 
Set the frame shape
| shape | Frame shape | 
| void QwtPlotGLCanvas::setFrameStyle | ( | int | style | ) | 
Set the frame style
| style | The bitwise OR between a shape and a shadow. | 
| void QwtPlotGLCanvas::setLineWidth | ( | int | width | ) | 
Set the frame line width
The default line width is 2 pixels.
| width | Line width of the frame | 
| void QwtPlotGLCanvas::setMidLineWidth | ( | int | width | ) | 
Set the frame mid line width
The default midline width is 0 pixels.
| width | Midline width of the frame |