This is done when during creation
MyLineEditDict[key] = self.txtNamePersonThen when you need to do something to them all you just do this
for key in MyLineEditDict.keys() MyLineEditDict[key].setText('None for All')Note: key is whatever you want it to be since how it is being used means there is no need to care what it is, however, if you want to handle your LineEdits a bit more semi-sequential or perhaps more intuitively you could make it a numeric index of some sort. Regardless the basics of this would not change any just its particulars.