I try to build a QGIS plugin to add data into a SpatiaLite database. All relevant tables are load into the QGIS Layers Panel.
At first, I want to select a feature in table_1
. This table has geometries and could also select in map canvas. I would specify this in a QgsFeatureListComboBox
. My approach is
self.dlg.mFeatureListComboBox_losp.setSourceLayer(table_1)
With this, I get the combo box and can choose a feature. But how to select the feature by the combobox and work with this feature and the information?
QgsFeaturePickerWidget
is more useful. You can get selected feature easily by it. Do you have any specific reason for usingQgsFeatureListComboBox
?QgsFeaturePickerWidget
but how to receive the relevant informations and put it in the other tables?QgsFeatureListComboBox
. Therefore, I will add a solution usingQgsFeaturePickerWidget
.