×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    1

    Unhappy lineEdit and Virtual Keyboard

    when i click on the lineEdit i want to show an only numeric virtual keyboard, how i can do that?

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

    Re: lineEdit and Virtual Keyboard

    Hi,

    And welcome to the boards! The magic keyword that helps with this one is InputMethodHints.

  3. #3
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    122

    Re: lineEdit and Virtual Keyboard

    Hello, I also have the same case. I need the virtual numeric keyboard when the user touches the line edit. How can I even show the virtual keyboard? I used this and it's not showing:

    ui->txtDay->setAttribute(Qt::WA_InputMethodEnabled);
    //QApplication:ostEvent(ui->txtDay, new QEvent(QEvent::FocusIn));
    QApplication:ostEvent(ui->txtDay, new QEvent(QEvent::RequestSoftwareInputPanel));
    ui->txtDay->setInputMethodHints(Qt::ImhDigitsOnly);

    txtDay is the lineedit control. What am I missing? I'm currently running my program using Qt Simulator in Symbian^3. Target device is N8.

    I've also found this link http://wiki.forum.nokia.com/index.ph...y_symbian3.zip. I believe that should work for Symbian^3 but nothing happens when I change the text edit. It seems that it can't detect the virtual keyboard hence it's not showing? Is it because I'm only using a simulator for Symbian^3?
    Last edited by vilmavaliente; 2011-01-17 at 04:07.

  4. #4
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: lineEdit and Virtual Keyboard

    Simulator AFAIK does not have virtual keyboard. Simulator is only having S60-mockup style with your choice of desktop Qt .
    Check how your app behaves in the N8.

Similar Threads

  1. CEikRichTextEditor without virtual keyboard
    By pixsta in forum Symbian User Interface
    Replies: 2
    Last Post: 2010-10-11, 19:54
  2. virtual keyboard
    By mohamed shaheen in forum Symbian
    Replies: 0
    Last Post: 2009-12-13, 10:05
  3. VKB(virtual keyboard) Help
    By qldpfh in forum Symbian
    Replies: 1
    Last Post: 2009-01-05, 12:03

Posting Permissions

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