Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by QList bars
QT绘制饼图+柱状图+折线图_qt制作饼状图_梅山剑客的博客-CSDN博客
项目需要使用到不同的统计图案的方法来显示统计数据 包括:饼图、柱状图、折线图。 饼图的实现 具体实现代码如下: 首先需要一个QChartView来存放饼图,实现如下: 拖拽一个QGraphicsView,并且将其提升为QChartView, QPieSeries* series = new QPieSeries(); series->append("Y1", 1); series->append("Y2", 2); series->append("Y3", 3); series->append("Y4", 4); series->append("Y5", 5); series->setHoleSize(0); series->setPieSize(1); QPieSlice* slice; QFont font("Arial", 5); QChart* chart = ui->chartViewPie->chart(); chart->addSeries(series); chart->setTitle("饼图标题"); for(int i=0;i<5;i++) { slice...
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with QList
Contact QList, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack