Skip to content

Commit a56c937

Browse files
committedDec 17, 2017
Expand docs
1 parent e8a42c9 commit a56c937

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/core/layout/qgslayout.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ class QgsLayoutUndoStack;
3535
* \ingroup core
3636
* \class QgsLayout
3737
* \brief Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
38+
*
39+
* While the raw QGraphicsScene API can be used to render the contents of a QgsLayout
40+
* to a QPainter, it is recommended to instead use a QgsLayoutExporter to handle rendering
41+
* layouts instead. QgsLayoutExporter automatically takes care of the intracacies of
42+
* preparing the layout and paint devices for correct exports, respecting various
43+
* user settings such as the layout context DPI.
44+
*
3845
* \since QGIS 3.0
3946
*/
4047
class CORE_EXPORT QgsLayout : public QGraphicsScene, public QgsExpressionContextGenerator, public QgsLayoutUndoObjectInterface

0 commit comments

Comments
 (0)
Please sign in to comment.