Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2010

    Automatic focus for QLineEdits as edit ends


    In a Nokia N8 is a form with 4 QLineEdit that accept each part of a code like this :
    if my code is 1acode - 2bcode - 3ccode - 4dcode

    QLine1 : 1acode
    QLine2 : 2bcode
    QLine3 : 3ccode
    QLine4 : 4dcode

    the problem is that the edition windows from the phone appears when finger clickin in the line edit. I don't know how to manage it to
    go automatically to the next QLine when I entered all my code part.

    For example with QLine1 when I finished to enter "1acode" the QLine2 get the focus to let me enter the 2nd part "2bcode", etc

  2. #2
    Regular Contributor
    Join Date
    Oct 2008
    Oslo, Norway

    Re: Automatic focus for QLineEdits as edit ends


    Are you using a validator for the line edits? If so, the focus could be changed to the next editor when the current one has valid content (do the codes have a fixed length?). Alternatively, you could switch the focus whenever the user closes the virtual keyboard (see here).

  3. #3
    Registered User
    Join Date
    Dec 2010

    Re: Automatic focus for QLineEdits as edit ends

    No I don't use a validator, even if I saw the event in the QLineEdit doc, more by lack of knowledge about validator.

    do the codes have a fixed length?).
    Yes the maxlength property is set

    The example wich you link to is exactly what I need : knowing when the virt keyb is closed. But as my application is dedicated also for PC, the cross platform constraints (S60 only) avoid using this solution.
    I think that I have to dig in the validator use ...
    Last edited by dlewin; 2010-12-29 at 16:32. Reason: bad tags

Similar Threads

  1. How to edit S60v3 (.rsc) file?(Edit Language)
    By wentworth in forum Symbian
    Replies: 18
    Last Post: 2008-06-03, 21:07
  2. Replies: 0
    Last Post: 2008-03-25, 11:33
  3. showing edit indicator on right top of edit control.
    By saurbh_g in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-01-11, 03:12
  4. Automatic Link Key exchange (automatic pairing)
    By nschmede in forum Bluetooth Technology
    Replies: 5
    Last Post: 2004-10-29, 09:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts