Hi,<br>I have a TabWidget dinamicly populated with widgtes(QLabel and QLineEdit),<br>and I need to know all the widgets by name in a way I can get their values.<br>This is for a database application, and I want to get the name of the widgets that<br>
are the name of the fields in the database.<br><br>the widget if populated like this:<br><font size="1"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">field2Display = [[1, 'Titulo', 'pu_title'], [3, 'Autor', 'pu_author'], [2,'Titulo Original', 'pu_title_original']]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> for n in field2Display:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> dumLayout = QHBoxLayout()</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> self.dum = QLineEdit()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> self.dum.setObjectName(n[2])</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> label = QLabel( n[1])</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> dumLayout.addWidget(label)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> dumLayout.addWidget(self.dum)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> tab1Layout.addLayout(dumLayout)</span></font><br><br>the first element is a index, the second is the namoe of the label, the third is the name os the widget and the name of the field.<br>
<br>Or<br><br>is there any other way o achieve this?<br><br>Thank you in advance for your help.<br><br>Zorze<br><br>