In QGIS3 I would like to get the current form-value of a ComboBox, that is within a QGroupBox (in the form).
I would like to get that value by using PyQT5.
Has anybody an idea?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Ok, I got it. Be careful, that you don`t try get the ComboBox of your form by an alias you set before. Without the alias it works:
meineComboBOX = myDialog.findChild(QComboBox, "ID_UTILISATION")
and then e.g. meineComboBOX.currentData() or meineComboBOX.currentText()