PDA

View Full Version : QLineEdit



anh5kor
27th March 2015, 11:47
Hello

In my GUI I have 12 QLineEdit ,where the name I have given are below


le_ecu2uss1_time
le_ecu2uss2_time
----
----
le_ecu2uss12_time



I want to use the 12 lineEdit in Loop.
How to convert this name for the use in Loop.

Lesiok
27th March 2015, 12:45
Simply : create QList<QLineEdit*> with pointers and :

1. If UI is created by program remeber addresses.
2. If UI is created by designer create list with QObject::findChildren.