Shows a list of features and renders a edit button next to each feature.
More...
#include <qgsfeaturelistview.h>
Shows a list of features and renders a edit button next to each feature.
Accepts a display expression to define the way, features are rendered. Uses a QgsFeatureListModel as source model.
Definition at line 46 of file qgsfeaturelistview.h.
◆ QgsFeatureListView()
QgsFeatureListView::QgsFeatureListView |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ aboutToChangeEditSelection
void QgsFeatureListView::aboutToChangeEditSelection |
( |
bool & |
ok | ) |
|
|
signal |
- Note
- not available in Python bindings
◆ contextMenuEvent()
void QgsFeatureListView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
overrideprotected |
◆ currentEditSelection()
◆ currentEditSelectionChanged
void QgsFeatureListView::currentEditSelectionChanged |
( |
QgsFeature & |
feat | ) |
|
|
signal |
Emitted whenever the current edit selection has been changed.
- Parameters
-
feat | the feature, which will be edited. |
◆ currentEditSelectionProgressChanged
void QgsFeatureListView::currentEditSelectionProgressChanged |
( |
int |
progress, |
|
|
int |
count |
|
) |
| |
|
signal |
Emitted whenever the current edit selection has been changed.
- Parameters
-
progress | the position of the feature in the list |
count | the number of features in the list |
- Since
- QGIS 3.8
◆ displayExpression()
const QString QgsFeatureListView::displayExpression |
( |
| ) |
const |
Returns the expression which is currently used to render the features.
- Returns
- A string containing the currend display expression
- See also
- QgsExpression
Definition at line 117 of file qgsfeaturelistview.cpp.
◆ displayExpressionChanged
void QgsFeatureListView::displayExpressionChanged |
( |
const QString & |
expression | ) |
|
|
signal |
Emitted whenever the display expression is successfully changed.
- Parameters
-
expression | The expression that was applied |
◆ editFirstFeature
void QgsFeatureListView::editFirstFeature |
( |
| ) |
|
|
inlineslot |
editFirstFeature will try to edit the first feature of the list
- Since
- QGIS 3.8
Definition at line 201 of file qgsfeaturelistview.h.
◆ editLastFeature
void QgsFeatureListView::editLastFeature |
( |
| ) |
|
|
inlineslot |
editLastFeature will try to edit the last feature of the list
- Since
- QGIS 3.8
Definition at line 219 of file qgsfeaturelistview.h.
◆ editNextFeature
void QgsFeatureListView::editNextFeature |
( |
| ) |
|
|
inlineslot |
editNextFeature will try to edit next feature of the list
- Since
- QGIS 3.8
Definition at line 207 of file qgsfeaturelistview.h.
◆ editPreviousFeature
void QgsFeatureListView::editPreviousFeature |
( |
| ) |
|
|
inlineslot |
editPreviousFeature will try to edit previous feature of the list
- Since
- QGIS 3.8
Definition at line 213 of file qgsfeaturelistview.h.
◆ featureListModel()
Gets the featureListModel used by this view.
- Returns
- The model in use
Definition at line 85 of file qgsfeaturelistview.h.
◆ keyPressEvent()
void QgsFeatureListView::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ layerCache()
◆ mouseMoveEvent()
void QgsFeatureListView::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void QgsFeatureListView::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void QgsFeatureListView::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ parserErrorString()
QString QgsFeatureListView::parserErrorString |
( |
| ) |
|
◆ repaintRequested [1/2]
void QgsFeatureListView::repaintRequested |
( |
| ) |
|
|
slot |
◆ repaintRequested [2/2]
void QgsFeatureListView::repaintRequested |
( |
const QModelIndexList & |
indexes | ) |
|
|
slot |
◆ selectAll
void QgsFeatureListView::selectAll |
( |
| ) |
|
|
overrideslot |
◆ setCurrentFeatureEdited()
void QgsFeatureListView::setCurrentFeatureEdited |
( |
bool |
state | ) |
|
Sets if the currently shown form has received any edit events so far.
- Parameters
-
Definition at line 138 of file qgsfeaturelistview.cpp.
◆ setDisplayExpression()
bool QgsFeatureListView::setDisplayExpression |
( |
const QString & |
displayExpression | ) |
|
The display expression is an expression used to render the fields into a single string which is displaied.
- Parameters
-
displayExpression | The expression used to render the feature |
- See also
- QgsExpression
Definition at line 104 of file qgsfeaturelistview.cpp.
◆ setEditSelection [1/2]
void QgsFeatureListView::setEditSelection |
( |
const QgsFeatureIds & |
fids | ) |
|
|
slot |
Set the feature(s) to be edited.
- Parameters
-
fids | A list of features to be edited |
Definition at line 226 of file qgsfeaturelistview.cpp.
◆ setEditSelection [2/2]
void QgsFeatureListView::setEditSelection |
( |
const QModelIndex & |
index, |
|
|
QItemSelectionModel::SelectionFlags |
command |
|
) |
| |
|
slot |
Set the feature(s) to be edited.
- Parameters
-
index | The selection to set |
command | selection update mode |
Definition at line 252 of file qgsfeaturelistview.cpp.
◆ setFeatureSelectionManager()
◆ setModel()
◆ willShowContextMenu
void QgsFeatureListView::willShowContextMenu |
( |
QgsActionMenu * |
menu, |
|
|
const QModelIndex & |
atIndex |
|
) |
| |
|
signal |
Emitted when the context menu is created to add the specific actions to it.
- Parameters
-
menu | is the already created context menu |
atIndex | is the position of the current feature in the model |
◆ QgsDualView
The documentation for this class was generated from the following files: