QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsLayoutConfigObject Class Reference

An object for property widgets for layout items. More...

#include <qgslayoutitemwidget.h>

Inheritance diagram for QgsLayoutConfigObject:
Inheritance graph
[legend]

Public Member Functions

 QgsLayoutConfigObject (QWidget *parent SIP_TRANSFERTHIS, QgsLayoutObject *layoutObject)
 Constructor for QgsLayoutConfigObject, linked with the specified layoutObject.
 
QgsVectorLayercoverageLayer () const
 Returns the current layout context coverage layer (if set).
 
void initializeDataDefinedButton (QgsPropertyOverrideButton *button, QgsLayoutObject::DataDefinedProperty key)
 Registers a data defined button, setting up its initial value, connections and description.
 
QgsLayoutAtlaslayoutAtlas () const
 Returns the atlas for the layout, if available.
 
void setObject (QgsLayoutObject *object) SIP_SKIP
 Links a new layout object to this QgsLayoutConfigObject.
 
void updateDataDefinedButton (QgsPropertyOverrideButton *button)
 Updates a data defined button to reflect the item's current properties.
 

Detailed Description

An object for property widgets for layout items.

All layout config type widgets should contain this object.

If you are creating a new QgsLayoutItem configuration widget, you should instead inherit from QgsLayoutItemBaseWidget (rather then directly working with QgsLayoutConfigObject).

Definition at line 61 of file qgslayoutitemwidget.h.

Constructor & Destructor Documentation

◆ QgsLayoutConfigObject()

QgsLayoutConfigObject::QgsLayoutConfigObject ( QWidget *parent  SIP_TRANSFERTHIS,
QgsLayoutObject layoutObject 
)

Constructor for QgsLayoutConfigObject, linked with the specified layoutObject.

Definition at line 38 of file qgslayoutitemwidget.cpp.

Member Function Documentation

◆ coverageLayer()

QgsVectorLayer * QgsLayoutConfigObject::coverageLayer ( ) const

Returns the current layout context coverage layer (if set).

Definition at line 172 of file qgslayoutitemwidget.cpp.

◆ initializeDataDefinedButton()

void QgsLayoutConfigObject::initializeDataDefinedButton ( QgsPropertyOverrideButton button,
QgsLayoutObject::DataDefinedProperty  key 
)

Registers a data defined button, setting up its initial value, connections and description.

The corresponding property key must be specified.

Definition at line 105 of file qgslayoutitemwidget.cpp.

◆ layoutAtlas()

QgsLayoutAtlas * QgsLayoutConfigObject::layoutAtlas ( ) const

Returns the atlas for the layout, if available.

Definition at line 150 of file qgslayoutitemwidget.cpp.

◆ setObject()

void QgsLayoutConfigObject::setObject ( QgsLayoutObject object)

Links a new layout object to this QgsLayoutConfigObject.

The object must be the same type as the existing object.

Note
Not available in Python bindings
Since
QGIS 3.4

Definition at line 167 of file qgslayoutitemwidget.cpp.

◆ updateDataDefinedButton()

void QgsLayoutConfigObject::updateDataDefinedButton ( QgsPropertyOverrideButton button)

Updates a data defined button to reflect the item's current properties.

Definition at line 114 of file qgslayoutitemwidget.cpp.


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