Questions tagged [qchart]

QCharts provides various 2D chart types to be used within Qt Widgets or Qt Quick applications.

120 questions
0
votes
0 answers

QLine is not added to all QCharts

I have a QT application and on my window I have graphs and number of graphs are depending on users choice thats why I am using a pointer array to create them. My problem is when I try to add QLineSeries object on my QChart(which allready has…
0
votes
2 answers

Getting values from a Pyqt5 chart

Trying to pull values from a pyqt5 chart when hovering the mouse over a position. The Series is a Candlestick series with values Adj_Open, Adj_High, Adj_Low, Adj_Close. def call_sym_data(self): self.chartlayout.removeWidget(self.chartviewer) …
magz
  • 9
  • 2
0
votes
1 answer

How To Remove the Q-Chart Background Color and Make it Transparent

How to remove the Q-Chart's background color (white) and make it transparent.?? So that I can maximize the size of the chart without covering other labels in my application. :) I have tried the…
KaizeL
  • 17
  • 6
0
votes
1 answer

C++ Qt in ubuntu Segmentation fault when trying to new object Qchart

I'm trying to use Qchart in ubuntu. I have a segmentation fault(sigsegv) error when running the code below. This error exists when creating the Qchart object. header file: #include #include #include…
0
votes
1 answer

QChart how to remove white border around the QScatterSeries

Would you have any idea how to remove the white border around the point when QScatterSeries is used? Is it possible? The idea behind is that when I plot a lot of values (on the image are 100 only) close to each other, the points will become…
vlad
  • 193
  • 2
  • 10
0
votes
0 answers

PyQt5 - not able to add elements to QTabWidget

I am trying to add a second tab (containing a pie chart visualization) to my PyQt5 GUI, but I cannot figure out how to display it. This second tab is laid out in a separate class and my program has the following structure: main.py from PyQt5 import…
0
votes
1 answer

How to set QChart Aspect Ratio

I am trying to implement an algorithm to maintain a QChart aspect ratio. It is kind of working but i was wondering if anyone had a simpler solution. below is the code that occurs on a resize event void TrainChartView::maintainAspectRatio(QSizeF…
BigL
  • 165
  • 1
  • 2
  • 15
0
votes
0 answers

How to auto-scroll(adjust) axis-Y after QChart::zoom?

I'm learning QtCharts. I need to zoom a chart, and adjust the range of the axis-Y accordingly, in order to make the logical visible part of the line can be completely plotted in the real visible area of the ChartView. For example: auto chart = new…
Leon
  • 1,489
  • 1
  • 12
  • 31
0
votes
1 answer

QChart slows down in QT application

So im writing a QT application that will read values from a serial port and display them in a graph during runtime. I managed to update my QChart during runtime with just a random generated value to try out updating in real time and it all works…
Toerktumlare
  • 12,548
  • 3
  • 35
  • 54
0
votes
1 answer

QCharts - create a break (null value) in QLineSeries

I am currently using QLineSeries to represent a temperature-over-time relation. I have a temperature sensor connected. It sends data every minute. The problem is, that the measurements are made in 20-minute periods after which the sensor is inactive…
0
votes
2 answers

Qchart, legend()->setGeometry does not work

I followed qt documentation https://doc-snapshots.qt.io/qt5-5.11/qtcharts-legend-example.html to detach the legend from the chart and set the detached legend…
lll
  • 302
  • 3
  • 13
0
votes
0 answers

How to properly display QChart using QGraphicsScene?

I would like to display a QChart in my GUI using QGraphicsScene and QGraphicsView. I tried to do it as follows: chart = QChart() chart.addSeries(series) scene =…
Karol
  • 61
  • 1
  • 5
0
votes
1 answer

Qt QChart title background

Does somebody know how to make QChart look like on the image below? I have created bar QBarChart and set its background color and color of the bar and removed axis numbers, but I don't know how to set title of the chart to look like this. How to…
0
votes
0 answers

Qt QChart background not updated

I am using Qt5.9.6 and when changing QChart axis ranges background is not updated. As soon as other application is chosen to be active background is updated. after range change Any idea ? Thanks I tried to create a representative example of my…
francek
  • 492
  • 4
  • 11
0
votes
1 answer

How to set x-axis to start at 0 in a Qt5 QChart

I have a QChart with an y-axis that goes from -25 to 25. Currently my x-axis is set at the bottom (y = -25 in this case). How can I set the x-axis to start at y=0? Thank you.
Snels Nick
  • 925
  • 3
  • 13
  • 25