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
QtWS25 Last Chance

How to removing QChart callout

Scheduled Pinned Locked Moved Unsolved General and Desktop
qchart calloutremove
2 Posts 2 Posters 420 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 last edited by lshiren
    #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();

    jsulmJ 1 Reply Last reply
    1
    • L lshiren

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      • Login

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