marmistrz
marmistrz

Reputation: 6414

JavaScript console and QML WebView

Can I access some JavaScript console in QML? A page silently fails and I'd like to see the JavaScript errors.

I'm using QML WebView

Thanks

Upvotes: 1

Views: 1601

Answers (1)

Vissu
Vissu

Reputation: 46

You can add the below setting to the webview definition in the QML , then right click the webview , you should able to see "Inspect" button clicking on it should open the developer tools.

WebView {

............
............
............
settings.developerExtrasEnabled : true;

}

Upvotes: 3

Related Questions