Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
Win XP, Nokia X6
-
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 } }