QGIS API Documentation  2.99.0-Master (c4aa4d0)
Public Member Functions | List of all members
QgsPaperGrid Class Reference

Item representing a grid. More...

#include <qgspaperitem.h>

Inheritance diagram for QgsPaperGrid:
Inheritance graph

Public Member Functions

 QgsPaperGrid (double x, double y, double width, double height, QgsComposition *composition)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) override
 Reimplementation of QCanvasItem::paint. More...

Detailed Description

Item representing a grid.

This is drawn separately to the underlying paper item since the grid needs to be drawn above all other composer items, while the paper item is drawn below all others.

Not available in Python bindings
Will be removed in QGIS 3.2

Definition at line 36 of file qgspaperitem.h.

Constructor & Destructor Documentation

◆ QgsPaperGrid()

QgsPaperGrid::QgsPaperGrid ( double  x,
double  y,
double  width,
double  height,
QgsComposition composition 

Definition at line 30 of file qgspaperitem.cpp.

Member Function Documentation

◆ paint()

void QgsPaperGrid::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  itemStyle,
QWidget *  pWidget 

Reimplementation of QCanvasItem::paint.

Definition at line 38 of file qgspaperitem.cpp.

The documentation for this class was generated from the following files: