I made a plugin what has multiple combobox but i have problem with the information load from the second combobox it depends on the combobox 1st. In the first combo box, i can choose layers from the loaded ones.
layers = self.iface.legendInterface().layers()
layer_list = []
for layer in layers:
layer_list.append(layer.name())
self.dlg.reteg.addItems(layer_list)
And the problem is that, in the second combobox i want a list from the selected layer's attribute names.