Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.0 Beta3
-
None
-
e96b6d588 (dev), 6bdd466d0 (6.6)
Description
qmllint emits some type warnings in the WebEngine context:
import QtQuick import QtQuick.Window import QtWebEngine Window { width: 640 height: 480 visible: true title: qsTr("Hello World") WebEngineView { id: webEngine anchors.fill: parent url: "https://www.qt.io" onJavaScriptConsoleMessage: function(level, message, lineNumber) { console.log("JavaScript Console:", lineNumber, level, message) } onContextMenuRequested: function(request) { request.accepted = true; } onRenderProcessTerminated: function(terminationStatus, exitCode) { console.log("Render process exited with code", exitCode. terminationStatus); } onWindowCloseRequested: { } onFeaturePermissionRequested: function(securityOrigin, feature) { switch (feature) { case WebEngineView.MediaAudioCapture: case WebEngineView.MediaVideoCapture: case WebEngineView.MediaAudioVideoCapture: case WebEngineView.DesktopAudioVideoCapture: grantFeaturePermission(securityOrigin, feature, true); break; default: console.log("Feature not granted"); } } onNewWindowRequested: function(request) { console.log("Open URL in external browser", request.requestedUrl); Qt.openUrlExternally(request.requestedUrl); } } }
qmllint output:
Warning: .../Main.qml:17:9: Type JavaScriptConsoleMessageLevel of parameter level in signal called javaScriptConsoleMessage was not found, but is required to compile onJavaScriptConsoleMessage. Did you add all import paths? [signal-handler-parameters] onJavaScriptConsoleMessage: function(level, message, lineNumber) { ^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning: .../Main.qml:25:9: Type RenderProcessTerminationStatus of parameter terminationStatus in signal called renderProcessTerminated was not found, but is required to compile onRenderProcessTerminated. Did you add all import paths? [signal-handler-parameters] onRenderProcessTerminated: function(terminationStatus, exitCode) { ^^^^^^^^^^^^^^^^^^^^^^^^^ Warning: .../Main.qml:32:9: Type Feature of parameter feature in signal called featurePermissionRequested was not found, but is required to compile onFeaturePermissionRequested. Did you add all import paths? [signal-handler-parameters] onFeaturePermissionRequested: function(securityOrigin, feature) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning: .../Main.qml:26:70: Member "terminationStatus" not found on type "int" [missing-property] console.log("Render process exited with code", exitCode. terminationStatus); ^^^^^^^^^^^^^^^^^
Attachments
For Gerrit Dashboard: QTBUG-117031 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
504791,11 | Provide the correct type information for WebEngineView | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
511763,2 | Provide the correct type information for WebEngineView | 6.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |