首页 > 解决方案 > 列出组合框中的数据框/属性行

问题描述

    Hii I am new to qgis plugin creation.I have create a`enter code here` 3 Combobox like these Combobox,Combobox_1,Combobox_2, I get the data input from Combobox

使用线条

layers = QgsProject.instance().layerTreeRoot().children()
self.dlg.comboBox.addItems([layer.name() for layer in layers]) 

   I stucked here itself.Now I need to selected the listed layer from Combobox.Then to list the index of the dataframe in Combobox_1,Combobox_2 which from the Combobox.

在此处输入图像描述

在此处输入图像描述

例如,我通过 Combobox 根据上图获取输入,然后我需要在 Combobox_1、Combobox_2 中列出 Well_no Latitude Longitude Years EC_GEN 像这些。请给你的建议...

标签: pythonpluginscomboboxqgispyqgis

解决方案


推荐阅读