Class: QgsLayoutManagerModel¶
-
class
qgis.core.
QgsLayoutManagerModel
(manager: QgsLayoutManager, parent: QObject = None)¶ Bases:
PyQt5.QtCore.QAbstractListModel
Constructor for QgsLayoutManagerModel, showing the layouts from the specified
manager
.List model representing the print layouts and reports available in a layout manager.
New in version 3.8: Enums
Methods
Returns
True
if the model allows the empty layout (“not set”) choice.Returns the model index corresponding to a
layout
.Returns the layout at the corresponding
index
.Sets whether an optional empty layout (“not set”) option is present in the model.
Signals
Attributes
-
LayoutRole
= 257¶
-
class
Role
¶ Bases:
int
-
allowEmptyLayout
(self) → bool¶ Returns
True
if the model allows the empty layout (“not set”) choice.See also
-
beginInsertColumns
()¶
-
beginInsertRows
()¶
-
beginMoveColumns
()¶
-
beginMoveRows
()¶
-
beginRemoveColumns
()¶
-
beginRemoveRows
()¶
-
beginResetModel
()¶
-
changePersistentIndex
()¶
-
changePersistentIndexList
()¶
-
childEvent
()¶
-
connectNotify
()¶
-
createIndex
()¶
-
customEvent
()¶
-
data
(self, index: QModelIndex, role: int) → Any¶
-
decodeData
()¶
-
disconnectNotify
()¶
-
encodeData
()¶
-
endInsertColumns
()¶
-
endInsertRows
()¶
-
endMoveColumns
()¶
-
endMoveRows
()¶
-
endRemoveColumns
()¶
-
endRemoveRows
()¶
-
endResetModel
()¶
-
flags
(self, index: QModelIndex) → Qt.ItemFlags¶
-
indexFromLayout
(self, layout: QgsMasterLayoutInterface) → QModelIndex¶ Returns the model index corresponding to a
layout
.See also
-
isSignalConnected
()¶
-
layoutFromIndex
(self, index: QModelIndex) → QgsMasterLayoutInterface¶ Returns the layout at the corresponding
index
.See also
-
persistentIndexList
()¶
-
receivers
()¶
-
resetInternalData
()¶
-
rowCount
(self, parent: QModelIndex) → int¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setAllowEmptyLayout
(self, allowEmpty: bool)¶ Sets whether an optional empty layout (“not set”) option is present in the model.
See also
-
setData
(self, index: QModelIndex, value: Any, role: int = Qt.EditRole) → bool¶
-
timerEvent
()¶
-