Unsolved calling another qml file from main qml file
-
This post is deleted! -
@Qjay have you tried using Loader? You can set it's source to view or load another qml file and set it to blank ("") to unload it.
-
@literA2 Thanks it worked ( earlier i did tried Loader but i was doing it wrong )
here is how it worked :
Loader{ id : webview } onClicked: { onClicked: webview.source = "Mywebview.qml" } }
-
Is it possible to keep on calling that qml file . Currently when i click on show page it only shows it once . If i close it , it does not show that webview again
-
@Qjay yes, have you tried clearing it's source or setting it to blank once you closed the webview?
-
yes , i have tried it but if i set it to blank suddenly the webview closes . I am not sure where should i place that code .