@@ -372,7 +372,15 @@ ApplicationWindow {
|
||||
onAccepted: {
|
||||
//ui.open(openAppDialog.fileUrl.toString())
|
||||
//ui.openHtml(Qt.resolvedUrl(ui.assetPath("test.html")))
|
||||
ui.openHtml(openAppDialog.fileUrl.toString())
|
||||
var path = openAppDialog.fileUrl.toString()
|
||||
console.log(path)
|
||||
var ext = path.split('.').pop()
|
||||
console.log(ext)
|
||||
if(ext == "html" || ext == "htm") {
|
||||
ui.openHtml(path)
|
||||
}else if(ext == "qml"){
|
||||
ui.openQml(path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user