Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2012

    Question How to slide the UI-screen depending on virtual keyboard?

    Hello Respected Developers,

    I am using QLineEdit to enter data for my application and used IAPClient to enable In-App-Purchase.
    I have 7 QLineEdit fields to accept user input (i.e. QLE_1, QLE_2, QLE_3, QLE_4, QLE_5, QLE_6, QLE_7).

    If I am not creating a new object of IAPClient, then the application opens a text editor with virtual-keyboard for each QLineEdit which overlaps the whole screen and user will be able to see what data he/she is entering.Working fine as user is able to see what text/data is entered

    But when I created a new object of IAPClient, then the QLineEdit calls only the Virtual-keyboard and the text editor is not visible. Again the keyboard overlaps on lower part of the screen with some QLineEdit (3 to 4 fields depending on different devices). For example, QLE_4, QLE_5, QLE_6, QLE_7 are hidden under the virtual keyboard and I am trying to enter data for QLE_6. In this case I am not able to see anything while entering.

    My target:
    I need to move the UI up and down with respect the keyboard
    i.e. if the keyboard will come then, I will have to slide the UI upward.
    And if the keyboard goes, then I have to slide down the UI to original position.

    What I have tried:
    I am receiving "textChanged" signal sent by QLineEdit and setting the UI's geometry
    this slides the UI upward in the screen.
    I tried to receive "returnPressed" signal to set back the UI's geometry
    but QLineEdit is not emitting "returnPressed" signal

    Is there any other way to achieve my target?

    Thanks in advance for any help


  2. #2
    Registered User
    Join Date
    Nov 2011

    Re: How to slide the UI-screen depending on virtual keyboard?

    Qt should handle this by its own. You only have to enable split screen input somewhere in your code, which is disabled as default:
    QCoreApplication::setAttribute(Qt::AA_S60DisablePartialScreenInputMode, false);

    Here you can find more informations:

  3. #3
    Registered User
    Join Date
    Dec 2012

    Unhappy Re: How to slide the UI-screen depending on virtual keyboard?

    Thanks Johnny_B for your help.

    I have tried by adding
    QApplication app(argc, argv);
    QCoreApplication::setAttribute(Qt::AA_S60DisablePartialScreenInputMode, false);
    and it did no effect anything.

    I am using Text input widgets on QWidget-based UI.

    I also have tried to reimplement the QResizeEvent. But this event is only called before the UI got loaded.
    I need something which will enable me to move QWidget-based UI depending on the keyboard visibility.


    The first image is the design for the QWidget-based UI and second image is after clicking the last QLineEdit i.e phone_qlineEdit .

    The UI should be able to slide up so that users can see their input, which I am not able to do now .

  4. #4
    Registered User
    Join Date
    Jan 2011

    Re: How to slide the UI-screen depending on virtual keyboard?

    I've used the approach on this webpage with some success:


Similar Threads

  1. Disable full screen qwerty option in virtual keyboard
    By kamalakshan in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-05-04, 10:44
  2. Virtual keyboard on pop screen
    By junaid888 in forum Mobile Java General
    Replies: 6
    Last Post: 2010-03-31, 14:03
  3. virtual keyboard for n97
    By eduarddav in forum Mobile Design and User Experience
    Replies: 1
    Last Post: 2009-09-15, 18:04
  4. porting midlet to support touch screen / virtual keyboard
    By ho3ho3 in forum Mobile Java General
    Replies: 6
    Last Post: 2009-07-28, 11: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