Qtcreator5.5安装qchart,首先下载qtcharts
$git clone https://github.com/qtproject/qtcharts.git
$cd qtcharts
$qmake
这时会出现问题是’qtConfig’ is not a recongnized test function
这时输入:
$git checkout 5.7
出来:Brach 5.7 set up to track remote brach 5.7 from origin.
Switch to a new brach ‘5.7’
这时再输入
$ qmake
就没有问题了。
$make (大概要等15分钟)
$sudo make install
然后就可以在qt creater中使用qtchart了。
以上方法在ubuntu 16.04 32bit 64bit中亲测有效。