TG-PlatformPlus/qml/debug/testfixture/DataAnalysis.qml

33 lines
995 B
QML

import QtQuick
import QtQuick.Controls
import QtWebEngine
import "./common"
// import "./Style"
Item {
id: self
width: 400
height: 300
//![1]
// property var weburl: "http://" + g_settingGrafanaHost+":" + g_settingGrafanaPort + g_settingGrafanaDashboardsUrl2
// WebEngineView {
// id: webengine
// anchors.left: parent.left
// anchors.right: parent.right
// anchors.top: parent.bottom
// anchors.bottom: parent.bottom
// url: g_settingGrafanaDashboardsUrl2 != "" ? weburl : ""
// Text{text: weburl}
// }
WebEngineView {
id: webengine
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
property var weburl: "http://" + g_settingGrafanaHost + ":" + g_settingGrafanaPort + g_settingGrafanaDashboardsUrl
url: g_settingGrafanaDashboardsUrl != "" ? weburl : ""
// Text{text: weburl}
}
}