Hi I am a beginner with python , QGIS and pyQT.
I am working on a python plug-in and would like to populate dynamically a pyQT
based QDialog form with combo boxes at runtime (the elements to be added are
input via a config txt file that is read). Thus I would like to get hints how I
can do thi
I would try any of the following:
> self.dlg.comboBoxNew = QtGui.QComboBox()
- set the Combobox's parent to the dialog or layout:
self.dlg.comboBoxNew = QtGui.QComboBox(self.dlg)
> self.dlg.comboBoxNew.setObjectName("comboBox")
> self.
Hi Karsten,
I think you need to add the QComboBox to your dialog in order to make it
show
_but_ if you have a ui file why don't you create the QComboBox in
QtDesigner?
you can access it like this (ui file must have been converted into py
file with pyuic4):
comboBoxNew = self.ui.comboBoxNew
I