Hi, I've got a question. In my program I have about 200 lineEdit's. And implementation of actionNew would be for each other. Is any method to to this by one or few lines of code?
Hi, I've got a question. In my program I have about 200 lineEdit's. And implementation of actionNew would be for each other. Is any method to to this by one or few lines of code?
Qt Code:
for(int i=0;i<100;i++) lineEdit[i]->clear();To copy to clipboard, switch view to plain text mode
QObject::findChildren() could be abused like this:
Qt Code:
lineEdit->clear();To copy to clipboard, switch view to plain text mode
J-P Nurmi
jaca (13th May 2008)
Than's, that's really useful
But there's something wrong... Before adding this foreach loop which jpn gave mi, program was compiling in 30 seconds. After adding it, it could not compile within 15 minutes!! And it's not finished yet, I'm still waiting for the end of compilation What's wrong?
Bookmarks