×

Discussion Board

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

    how to show Virtual Keyboard

    Is it possible to show the Virtual keyboard without having a QLineEdit , and of course get the entered text back and also get keypress events? (Symbian code is also welcome )
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  2. #2
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: how to show Virtual Keyboard

    1) setFocus to an out of screen QLineEdit
    2) QApplication:ostEvent(searchEdit, new QEvent(QEvent::RequestSoftwareInputPanel));
    http://stackoverflow.com/questions/3...ich-api-to-use
    Last edited by lucarocchi; 2010-12-28 at 18:30.
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    5

    Re: how to show Virtual Keyboard

    Hi,

    I have this piece of code:

    Code:
     if(NULL== focusIn && NULL==requestKeyboard) {
                focusIn = new QEvent(QEvent::FocusIn);
                requestKeyboard = new QEvent(QEvent::RequestSoftwareInputPanel);
                m_edit = new QLineEdit(this);
                m_edit->setGeometry(1,1,1,1);
                connect(m_edit,SIGNAL(textChanged(QString)),this,SLOT(setText(QString)));
            }
            m_edit->setFocus();
            QApplication::sendEvent(m_edit,requestKeyboard);//&requestKeyboard);
    The keyboard is not displayed after running this code.

    ???

    P.S.
    I am running Nokia N8 with Symbian^3

  4. #4
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: how to show Virtual Keyboard

    i suppose postEvent instead of sendEvent makes the difference
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

Similar Threads

  1. virtual keyboard
    By mohamed shaheen in forum Symbian Web Runtime
    Replies: 0
    Last Post: 2009-12-13, 10:05
  2. virtual keyboard for n97
    By eduarddav in forum Mobile Design and User Experience
    Replies: 1
    Last Post: 2009-09-15, 18:04
  3. virtual keyboard for n97
    By eduarddav in forum Mobile Java General
    Replies: 1
    Last Post: 2009-09-15, 18:01
  4. VKB(virtual keyboard) Help
    By qldpfh in forum Symbian C++
    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
  •