QLineEdit disabled on focus out

43 views
Skip to first unread message

Luigi Ferraris

unread,
Jun 9, 2014, 9:15:26 AM6/9/14
to qtcon...@googlegroups.com
Hi friends,
I have a problem related to per subject. The scenario is this one:
I have a form with three QLineEdit widgets, all enabled and editable. I
need to disable one of them when I leave it. The problem: the tab order
sequence it's not respected.

This is the form's schema:
+------------+ +------------+ +------------+
| QLine1 | | QLine2 | | QLine3 |
+------------+ +------------+ +------------+

I'm editing QLine1; at the end, focused widget will be ( or maybe it
should be) QLine2

I have connected QEvent_FocusOut on QLine1 and the codeblock is { |o|
o:setEnbaled(.F.) } where o is QLine1.

If I remove setEnabled QLine2 get focus; if I use it ....QLine3 get focus.

Is there someone have some idea how to solve? Disabling QLine1 and
Qline2 get focus.

BR
Luigi Ferraris

Reply all
Reply to author
Forward
0 new messages