Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13342

Text input doesn't work in WebView if WebView's ancestor is loaded

    XMLWordPrintable

Details

    • 00f34afa24a229915d1f2b00c02b93f5890fab3f

    Description

      Like the title says the text inputs of a web page displayed with a WebView element don't work (nothing happens if you click and type) if the WebView or its ancestor element is loaded using a Loader. Clicking links, buttons and combo boxes seems to work fine.

      On Symbian when using a Loader the edit goes gray when you tap it and long tap brings out a popup menu for cut/copy/paste. Without the use of Loader the edits work properly also on Symbian.

      loader.qml
      import Qt 4.7
      
      Loader {
           width: 360; height: 640;
           Component.onCompleted: { source = "WebTest.qml"; }
      }
      
      /*
      
      // This works fine
      Rectangle {
          width: 360; height: 640;
          WebTest { }
      }
      */
      
      WebTest.qml
      import Qt 4.7
      import QtWebKit 1.0
      
      
      Rectangle{
          anchors.centerIn: parent
          border.width: 3
      
          width: 240
          height: 360
      
          WebView {
              id: webView
              anchors.leftMargin: 1
              anchors.topMargin: 1
              anchors.fill: parent
              url: "http://jurpo.org/~elpuri/edits.html"
              opacity: 1
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            juturune Juha Turunen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes