Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to open Virtual Keyboard without clicking the TextEdit
Forum Updated to NodeBB v4.3 + New Features

How to open Virtual Keyboard without clicking the TextEdit

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 4 Posters 5.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jkosonen
    wrote on last edited by
    #1

    Is there a way to open virtual keyboard without clicking the TextEdit component?

    Changing the focus of the TextEdit doesn't do a thing.
    Would be nice to remove one extra click from user if I have button for commenting.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kypeli
      wrote on last edited by
      #2

      In Harmattan Qt Components for TextField you can use forceActiveFocus() - but not sure about TextEdit.

      But if you target Harmattan (since you talk about the virtual keyboard?), I would go with TextField.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jkosonen
        wrote on last edited by
        #3

        [quote author="Kypeli" date="1314350841"]In Harmattan Qt Components for TextField you can use forceActiveFocus() - but not sure about TextEdit.

        But if you target Harmattan (since you talk about the virtual keyboard?), I would go with TextField. [/quote]

        Symbian also haves virtual keyboard, and interested about that :)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kypeli
          wrote on last edited by
          #4

          Oh, right. That platform. So easy to forget :)

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jkosonen
            wrote on last edited by
            #5

            [quote author="Kypeli" date="1314351592"]Oh, right. That platform. So easy to forget :) [/quote]

            haha ;)

            1 Reply Last reply
            0
            • R Offline
              R Offline
              roopeshchander
              wrote on last edited by
              #6

              Sure you do: "TextEdit::openSoftwareInputPanel":http://doc.qt.nokia.com/4.7/qml-textedit.html#openSoftwareInputPanel-method

              1 Reply Last reply
              0
              • S Offline
                S Offline
                srikanth_trulyit
                wrote on last edited by
                #7

                Symbian virtual keyboard is entirely different. It takes you to a native view with a split keyboard. Once you commit the content they are pushed to your Qt View. This may not go well with suggestions etc.

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  roopeshchander
                  wrote on last edited by
                  #8

                  [quote author="srikanthsombhatla" date="1314798567"]Symbian virtual keyboard is entirely different. It takes you to a native view with a split keyboard. Once you commit the content they are pushed to your Qt View. This may not go well with suggestions etc.[/quote]

                  @srikanth: Agree that it looks pretty bad on Symbian. Even Symbian Anna doesn't actually offer a real split keyboard for Qt apps (with both app UI and the virtual keyboard visible in one screen). However, it's not quite like it's a completely different view: When typing with the virtual keyboard, keypress events are delivered to the Qt app as you type, and selections change in the Qt app as it changes in the keyboard-view.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved