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

Mouse hover problem combining QLineSeries and QScatterSeries on a QChart (PySide6)

I am writing a small python module to visualize data on a chart using Qt (PySide6). My goal is to distinguish between mouse hovers on QLineSeries's lines and points. Since it does not seem to be possible with the current implementation, I tried to…
dr.umma
  • 37
  • 4
0
votes
1 answer

Implement muti Y axis on QT chart?

I have to place 4 spines on the same chart with different Y ratios, so I need to set up 4 Y-axes. I have read the "muti-axis" demo from QT creator, it shows a example of two Y-axis and the two Y-axis are put on left and right side. It's good when…
Ye Shiwei
  • 9
  • 5
0
votes
1 answer

Simple Bar chart with QtChart

I like to create a simple bar chart with QChart. I found a lot of tutorials with series in the bars, like this https://codeloop.org/qt5-tutorial-creating-barchart-with-qtchart/. But I don't need series, just a bar per month with a value, like…
Marlowe
  • 252
  • 3
  • 15
0
votes
1 answer

QCandlestickSeries::hovered signal is not being emitted

The QObject::connect returns true and when I manually emit the signal, the breakpoint is hit in the slot, but when I hover over a QCandlestickSet, the signal is not emitted. I removed all other custom drawings from the chart to be sure nothing was…
MikeO
  • 391
  • 4
  • 17
0
votes
1 answer

How to promote QGraphicView to custom widget in .ui file?

I need to create my own widget class and place it on a graphical form (.ui). In order to achieve this, I borrowed from the examples that come with the qt delivery this class: #ifndef CHARTVIEW_H #define CHARTVIEW_H #include #include…
tgoerg
  • 113
  • 3
  • 8
0
votes
1 answer

How to display a QChartView inside a QStackedWidget?

I want my form to have a QStackedWidget with 2 (at least) pages and each of them has a QChartView. In the form editor, through the 'promote' menu, I made a QChartView from QGraphicView. (screenshoot (so far there is only 1 QChartView on it - so that…
tgoerg
  • 113
  • 3
  • 8
0
votes
2 answers

Qt line causes strange error: Cmd.exe exited with code -20

I am building my project on 2 different PCs, both using the same methods (Visual Studio 2017 with CMake). They both configure and generate fine using CMake. The issue is when I try to build them, one builds fine and the other has errors. I have…
Jessica
  • 1,083
  • 2
  • 12
  • 27
0
votes
2 answers

QChart points are incorrectly plotted when I change the XAxis and YAxis

I am making a QScatterSeries. I have some points plotted in 3 different series (red, green, blue). It all plots perfectly when I use chart->createDefaultAxes(). All points are where they should be. The issue is that when I change the X Axis and Y…
Jessica
  • 1,083
  • 2
  • 12
  • 27
0
votes
1 answer

qt c++ QChart->setGeometry does not work in MainWindow

I created an object with a QChart inside and a MainWindow with 2 QPushButton, when I try to display my QChart, it takes all window. If I want to resize QChart everything works but if I try to move it nothing work (with setGeometry or with…
q7frkz
  • 13
  • 7
0
votes
1 answer

How to adjust too small chart size in QChartview (GUI designed in through QTDesigner)

I have designed a GUI in QTDesigner where I want to include a Doughnut chart using PyQT5's QChart. I have achieved to get the Chart itself visible and hide the legend. However, I have no clue how to make the chart fit the full area of the defined…
Marc v. H.
  • 11
  • 4
0
votes
1 answer

QChart with QAreaSeries with large data is very slow

I am playing around with QCharts (using area chart example as a template). I am drawing an area chart with 10000 points in each of the series, and am finding that it is very slow, 30s for the window to appear and resizing the window results in the…
retarded
  • 127
  • 1
  • 10
0
votes
1 answer

Update vertical line position quickly

I am currently struggling with pyside. I want to make a graph with few characteristics: Vertical line where the cursor is. Like Google when it is showing stocks Label with value where the cursor is Click/Double-click to have the user select…
cricardol
  • 4,212
  • 3
  • 20
  • 28
0
votes
1 answer

Show percentage and label

I'm trying to show the label and the percentage in the Qchart but it show me only one of them Is there a way to show both of them This is my function that run the QtChart def charts_jr_acte(self):# pushButton_123 rightseries =…
houhou
  • 157
  • 1
  • 11
0
votes
1 answer

Problem with dynamically updating a QLineSeries

I encounter a problem when I try to make a self updating QLineSeries through the help of QThread. from PySide2.QtCore import * from PySide2 import * from PySide2.QtWidgets import * from PySide2.QtCharts import * from PySide2.QtGui import * import…
hugodurmer
  • 11
  • 3
0
votes
1 answer

How to use QMouseEvent to display the mouse position in a QChart?

I am pretty new on Qt and C++. I have a QChart which has a QLineSeries object. I want to show the user the projection of the mouse on the coordinate system. My problem is I can display coordinates everywhere except my QChart object. I want to…