Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QWebView and keyboard navigation in Qt4.6 and non-touch Symbian devices
Qt 6.11 is out! See what's new in the release blog

QWebView and keyboard navigation in Qt4.6 and non-touch Symbian devices

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.3k 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.
  • A Offline
    A Offline
    a.martelli
    wrote on last edited by
    #1

    Hello,

    this is my first post in this forum, so..hi all!
    I'm developing an application for Symbian 3rd edition non-touch phones, which support at most Qt4.6.
    What I need is to interact, using the phone keyboard, with a form in a web page, edit a couple of fields and press a submit button.

    The best result I obtained until now is to intercept the keyPress event on the webview's parent widget and to move between focusable elements (links, inputs, etc..) in the web page. What I do is:

    @
    case Qt::Key_Up:
    {
    bool b = webview->page()->focusNextPrevChild(false);
    break;
    }
    case Qt::Key_Down:
    {
    bool b = webview->page()->focusNextPrevChild(true);
    LOG_INFO("Next page element move: " + b);
    break;
    }
    @

    But it "works" in a terrible way! I can't "click" on links and buttons, I can edit only one input field, after which I'm not able to edit any other field, and the backspace is not working.

    Do somebody know if there is a best pratice to achieve this result or have some suggestions?

    [EDIT: code formatting, please wrap in @-tags, Volker]

    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