Class: QgsBookmarkManagerModel¶
-
class
qgis.core.
QgsBookmarkManagerModel
(manager: QgsBookmarkManager, projectManager: QgsBookmarkManager = None, parent: QObject = None)¶ Bases:
PyQt5.QtCore.QAbstractTableModel
Constructor for
QgsBookmarkManagerModel
, associated with a mainmanager
(usually the application bookmark manager, accessed via QgsApplication.bookmarkManager()) and a secondaryprojectManager
(a project based bookmark manager).Implements a model for the contents of
QgsBookmarkManager
objects.QgsBookmarkModel
provides a Qt table model for displaying and manipulating the bookmarks managed by aQgsBookmarkManager
object. The model requires both a main manager (usually the application bookmark manager, accessed via QgsApplication.bookmarkManager()) and a project-based manager. The resultant model data is a merge of the bookmarks stored in both managers.New in version 3.10.
- Parameters
manager (QgsBookmarkManager) –
projectManager (
QgsBookmarkManager
= None) –parent –
-
ColumnCrs
= 6¶
-
ColumnGroup
= 1¶
-
ColumnName
= 0¶
-
ColumnStore
= 7¶
-
ColumnXMax
= 4¶
-
ColumnXMin
= 2¶
-
ColumnYMax
= 5¶
-
ColumnYMin
= 3¶
-
class
Columns
¶ Bases:
int
-
class
CustomRoles
¶ Bases:
int
-
RoleExtent
= 256¶
-
RoleGroup
= 259¶
-
RoleId
= 258¶
-
RoleName
= 257¶
-
QgsBookmarkManagerModel.beginInsertColumns(self, QModelIndex, int, int)
-
QgsBookmarkManagerModel.beginInsertRows(self, QModelIndex, int, int)
-
QgsBookmarkManagerModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
-
QgsBookmarkManagerModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
-
QgsBookmarkManagerModel.beginRemoveColumns(self, QModelIndex, int, int)
-
QgsBookmarkManagerModel.beginRemoveRows(self, QModelIndex, int, int)
-
beginResetModel
(self)¶
-
QgsBookmarkManagerModel.changePersistentIndex(self, QModelIndex, QModelIndex)
-
changePersistentIndexList
(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
-
childEvent
(self, QChildEvent)¶
-
columnCount
(self, parent: QModelIndex = QModelIndex()) → int¶ - Parameters
parent (QModelIndex = QModelIndex()) –
- Return type
int
-
connectNotify
(self, QMetaMethod)¶
-
QgsBookmarkManagerModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
-
customEvent
(self, QEvent)¶
-
data
(self, index: QModelIndex, role: int = Qt.DisplayRole) → Any¶ - Parameters
index (QModelIndex) –
role (int = Qt.DisplayRole) –
- Return type
Any
-
QgsBookmarkManagerModel.decodeData(self, int, int, QModelIndex, QDataStream) -> bool
-
disconnectNotify
(self, QMetaMethod)¶
-
encodeData
(self, Iterable[QModelIndex], QDataStream)¶
-
endInsertColumns
(self)¶
-
endInsertRows
(self)¶
-
endMoveColumns
(self)¶
-
endMoveRows
(self)¶
-
endRemoveColumns
(self)¶
-
endRemoveRows
(self)¶
-
endResetModel
(self)¶
-
flags
(self, index: QModelIndex) → Qt.ItemFlags¶ - Parameters
index (QModelIndex) –
- Return type
Qt.ItemFlags
-
headerData
(self, section: int, orientation: Qt.Orientation, role: int = Qt.DisplayRole) → Any¶ - Parameters
section (int) –
orientation (Qt.Orientation) –
role (int = Qt.DisplayRole) –
- Return type
Any
-
insertRows
(self, row: int, count: int, parent: QModelIndex = QModelIndex()) → bool¶ - Parameters
row (int) –
count (int) –
parent (QModelIndex = QModelIndex()) –
- Return type
bool
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
persistentIndexList
(self) → List[QModelIndex]¶
-
receivers
(self, PYQT_SIGNAL) → int¶
-
removeRows
(self, row: int, count: int, parent: QModelIndex = QModelIndex()) → bool¶ - Parameters
row (int) –
count (int) –
parent (QModelIndex = QModelIndex()) –
- Return type
bool
-
resetInternalData
(self)¶
-
rowCount
(self, parent: QModelIndex = QModelIndex()) → int¶ - Parameters
parent (QModelIndex = QModelIndex()) –
- Return type
int
-
sender
(self) → QObject¶
-
senderSignalIndex
(self) → int¶
-
setData
(self, index: QModelIndex, value: Any, role: int = Qt.EditRole) → bool¶ - Parameters
index (QModelIndex) –
value (Any) –
role (int = Qt.EditRole) –
- Return type
bool
-
timerEvent
(self, QTimerEvent)¶