Use 'Component.onCompleted' handler to assign directly your url, or to call a function which will do that.
function setUrl(idOfWebView){
idOfWebView.url = "https://forum.qt.io"}
WebView {
id: myWebView
anchors.fill: parent
// url: "set url here "
LA