PDA

View Full Version : editingFinished of QLineEdit



weixj2003ld
3rd November 2009, 00:50
I want to do the fllowing things with QLineEdit ,but error occur.
step 1.I create a QLineEdit and 10 QLabel.
step 2.I connect singal editingFinished of QLineEdit with function dd;
step 3.In function dd,I do the following things:
A)delete the 10 QLabel;
B)recreate c QLabel;(c is the number input by QLineEdit )
When I run my program,the following things occur:
When I input a number,for example,5 into QLineEdit ,and click any place except the 10 QLabel,the program is ok,but When click any QLabel,the program will break down.
I think that when I click any QLabel,the program has deleted it,so the program break down,but I do not know how to do ?

wysota
3rd November 2009, 09:06
Please provide code or something. We're not true-seers.