master
feiyangqingyun 2020-01-04 14:53:35 +08:00
parent 2418600dd0
commit fa99991ec4
8 changed files with 2 additions and 2 deletions

BIN
echartgauge/echartgauge.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -8,7 +8,7 @@
</head>
<body>
<!-- 为ECharts准备一个具备大小宽高的Dom -->
<div id="main" style="height:500px;"></div>
<div id="main" style="height:300px;"></div>
<script type="text/javascript">
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById('main'));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View File

@ -51,7 +51,7 @@ void Widget::initForm()
void Widget::on_horizontalSlider_valueChanged(int value)
{
QString js = QString("init(%1)").arg(value);
QString js = QString("setGaugeValue(%1)").arg(value);
#ifdef webkit
webView->page()->mainFrame()->evaluateJavaScript(js);
webView1->page()->mainFrame()->evaluateJavaScript(js);

BIN
snap/echartgauge.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB