QwtPlotLayout(3) Qwt User's Guide QwtPlotLayout(3) NAME QwtPlotLayout - Layout engine for QwtPlot. SYNOPSIS #include Public Types enum Option { AlignScales = 0x01, IgnoreScrollbars = 0x02, IgnoreFrames = 0x04, IgnoreLegend = 0x08, IgnoreTitle = 0x10, IgnoreFooter = 0x20 } typedef QFlags< Option > Options Public Member Functions QwtPlotLayout () Constructor. virtual ~QwtPlotLayout () Destructor. void setCanvasMargin (int margin, int axis=-1) int canvasMargin (int axisId) const void setAlignCanvasToScales (bool) Set the align-canvas-to-axis-scales flag for all axes. void setAlignCanvasToScale (int axisId, bool) bool alignCanvasToScale (int axisId) const void setSpacing (int) int spacing () const void setLegendPosition (QwtPlot::LegendPosition pos, double ratio) Specify the position of the legend. void setLegendPosition (QwtPlot::LegendPosition pos) Specify the position of the legend. QwtPlot::LegendPosition legendPosition () const void setLegendRatio (double ratio) double legendRatio () const virtual QSize minimumSizeHint (const QwtPlot *) const virtual void activate (const QwtPlot *, const QRectF &plotRect, Options options=Options()) Recalculate the geometry of all components. virtual void invalidate () QRectF titleRect () const QRectF footerRect () const QRectF legendRect () const QRectF scaleRect (QwtAxisId) const QRectF canvasRect () const Protected Member Functions void setTitleRect (const QRectF &) Set the geometry for the title. void setFooterRect (const QRectF &) Set the geometry for the footer. void setLegendRect (const QRectF &) Set the geometry for the legend. void setScaleRect (QwtAxisId, const QRectF &) Set the geometry for an axis. void setCanvasRect (const QRectF &) Set the geometry for the canvas. Detailed Description Layout engine for QwtPlot. It is used by the QwtPlot widget to organize its internal widgets or by QwtPlot::print() to render its content to a QPaintDevice like a QPrinter, QPixmap/QImage or QSvgRenderer. See also QwtPlot::setPlotLayout() Definition at line 27 of file qwt_plot_layout.h. Member Typedef Documentation typedef QFlags