+ 1

how Set focus next object if maxlength of last object is 3?

if qlineedit.maxlength==3: nextqlineedit.setfocus() if we insert 3digits numbers in a qlineedit without press any key, the next object get focus how can write that?

25th Feb 2017, 6:27 PM
hamid
hamid - avatar
2 Respostas
+ 7
If it's a loop you refer to, check the condition and if it's true, save the next index by incrementing the counter by 1 then break.
26th Feb 2017, 10:09 PM
Mark Foxx
Mark Foxx - avatar
+ 1
can you make an example please
27th Feb 2017, 7:06 AM
hamid
hamid - avatar