Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to removing QChart callout
Forum Updated to NodeBB v4.3 + New Features

How to removing QChart callout

Scheduled Pinned Locked Moved Unsolved General and Desktop
qchart calloutremove
2 Posts 2 Posters 430 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lshiren
    wrote on 9 Apr 2019, 13:31 last edited by lshiren 4 Sept 2019, 13:33
    #1

    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();

    J 1 Reply Last reply 10 Apr 2019, 05:06
    1
    • L lshiren
      9 Apr 2019, 13:31

      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();

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 10 Apr 2019, 05:06 last edited by
      #2

      @lshiren Hi!
      It would be better to post this answer in the original thread instead of opening a new one.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      2/2

      10 Apr 2019, 05:06

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved