更新
This commit is contained in:
BIN
echartgauge/echartgauge.gif
Normal file
BIN
echartgauge/echartgauge.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 360 KiB |
@@ -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 |
@@ -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
BIN
snap/echartgauge.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 360 KiB |
Reference in New Issue
Block a user