Results 1 to 3 of 3

Thread: Show virtual keyboard without user's tap (iOS and Android)

  1. #1
    Join Date
    Sep 2015
    Posts
    12
    Thanks
    4
    Qt products
    Qt5
    Platforms
    MacOS X Windows Android

    Default Show virtual keyboard without user's tap (iOS and Android)

    Hi all,

    I have a TextInput. I want to show virtual keyboard automatically without user's tap.
    I try to google the solution but none of them works to me.
    (For example, Qt.inputMethod.show() doesn't work)

    Could somebody give me a hint how to do that? Either QML or C++ solution is fine.
    Thank you very much.

    Best regards,
    Clark

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Show virtual keyboard without user's tap (iOS and Android)

    Have you tried calling forceActiveFocus() on the element?

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    clarksuper0420 (23rd November 2015)

  4. #3
    Join Date
    Sep 2015
    Posts
    12
    Thanks
    4
    Qt products
    Qt5
    Platforms
    MacOS X Windows Android

    Default Re: Show virtual keyboard without user's tap (iOS and Android)

    Thank you Anda Skoa!!!! forceActiveFocus() works


    Added after 38 minutes:


    Hi all,

    For those of you who are concerned about this issue.
    You could show virtual keyboard for iOS by calling textInput_ID.forceActiveFocus()
    And show virtual keyboard for Android by calling Qt.inputMethod.show()

    Cheers.......
    Last edited by clarksuper0420; 23rd November 2015 at 08:25.

Similar Threads

  1. Virtual keyboard problem in Android app
    By d_stranz in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2015, 05:20
  2. Virtual keyboard example
    By Coder5546 in forum Newbie
    Replies: 1
    Last Post: 29th November 2014, 13:45
  3. Show user current location on google map in android
    By hasti in forum Qt Programming
    Replies: 3
    Last Post: 27th September 2014, 14:51
  4. Show virtual keyboard in Windows 8
    By jh in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2013, 23:10
  5. Virtual Keyboard
    By NoRulez in forum Qt Programming
    Replies: 9
    Last Post: 5th August 2010, 07:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.