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. Unable to remove axes from QChart
QtWS25 Last Chance

Unable to remove axes from QChart

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtchartsqabstractaxisqchartqlineseriesqscatterseries
1 Posts 1 Posters 2.0k 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.
  • D Offline
    D Offline
    Dilip D
    wrote on last edited by
    #1

    Hi,

    We have been using QTCharts for plotting purposes, our scenario is that we are plotting the data on user's input so whenever user says plot, we use the current window to re-plot the data (which can be different than previous plotted data).

    We are using QChart::createDefaultAxes() to create the axes for the chart & whenever we have to re-plot, we are removing the earlier axes by calling removeAxis on each of the QAbstractAxis associated with the instance of QChart but apparently removeAxis is not actually removing the axis from the QChart because we can see the new Axis being drawn on top of the older one.

    We have also tried calling QAbstractSeries::detachAxis using each & every Series that we are appending in the chart but even that doesn't do the trick. For now we are disabling the older axis by calling QAbstractAxis::setVisible(false) but this is a temporary solution, removing the axis altogether is what is desirable in this case.

    Any help in this matter is appreciated.

    Regards.
    Dilip

    1 Reply Last reply
    0

    • Login

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