How to removing QChart callout
Unsolved
General and Desktop
-
wrote on 9 Apr 2019, 13:31 last edited by lshiren 4 Sept 2019, 13:33
Re: Removing QChart callout
The way to remove all callouts from the window is as follows:for(int i = 0; i < m_callouts.count() ; i++)
{
m_callouts.at(i)->hide();
}
this->chart->update();//update the chart, otherwise there are some noise points leaved in the chart
qDeleteAll(m_callouts);
m_callouts.clear(); -
Re: Removing QChart callout
The way to remove all callouts from the window is as follows:for(int i = 0; i < m_callouts.count() ; i++)
{
m_callouts.at(i)->hide();
}
this->chart->update();//update the chart, otherwise there are some noise points leaved in the chart
qDeleteAll(m_callouts);
m_callouts.clear();@lshiren Hi!
It would be better to post this answer in the original thread instead of opening a new one.
2/2