StupidBeauty
Read times:318Posted at:Sat Oct 15 04:50:11 2011
- no title specified

WPieChart使用注意事项

首先需要使用setModel、setLabelsColumn、setDataColumn三个方法来设置好数据源。

再要使用resize来显式地设置大小。因为WPieChart是继承自WPaintedWidget 的,而WPaintedWidget需要显式地设置大小。

以上两件事做咯之后,一个饼图就能显示在它的亲代部件中咯。

如果妳还需要这个饼图显示出一些文字的说明信息(例如哪一块饼代表的是哪个数据,哪一块饼占的百分比是多大)的话,那么还需要调用setDisplayLabels方法来设置出要显示的文字内容。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4