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

Qt QChart & QLabel alignment

I would like to have the same size for the two QLabels and QChart which I display inside the QWidget. This is how my design looks like: Qt Design But I'm always getting smaller QChart inside that QWidget on the right side (black rectangle). As…
0
votes
1 answer

RGB Histogram with QBarSeries

I followd this Example to draw a RGB-Histogram with Qt. I have three different QBarSets, one for each color channel. My problem now is that all the bars are drawn next to each other. Is it somehow possible to draw the bars in front of each…
Käseknacker
  • 221
  • 2
  • 15
0
votes
1 answer

Dynamically create DateTimeAxis QML chart SplineSeries

I used to append using splineseries->append(i.key().toMSecsSinceEpoch(),i.value()); But x axis getting same value repeated .
Masthan
  • 727
  • 1
  • 8
  • 29
0
votes
1 answer

Qt Coordinates of QPieSlice

How can I get the coordinates of a QPieSlice (center)? Background: I want to add a "Callout" see here to my QChart which displays a QPieSeries. I have connected the hovered signal to a custom slot. In this slot, I have access to the QPieSlice. To…
user7431005
  • 3,899
  • 4
  • 22
  • 49
0
votes
1 answer

Detecting all Qt chart series intersecting a selection rectangle

I have a QChart with a number of QLineSeries and QScatterSeries on it. I would like to be able to use the mouse to click-drag a line or a box shape and to detect all series which intersect that box. I currently have a QGraphicsItem being drawn when…
Krakkos
  • 1,439
  • 3
  • 19
  • 24
0
votes
2 answers

Selecting QLineSeries in a QChartView using rubberband selection

I have a QChart with a number of QLineSeries on it. I have created my own chart class CPlotView derifed from QChartView and overridden the mousePressEvent, mouseMoveEvent and mouseReleaseEvent as shown below. I want to implement both rubberband zoom…
Krakkos
  • 1,439
  • 3
  • 19
  • 24
0
votes
1 answer

Add a module/library to meta-toolchain-qt5 sdk

I am trying to add qtcharts to meta-toolchain-qt5. My question is to which recipes/files should I add qtcharts to have qtcharts on meta-toolchain-qt5 sdk? I need to compile my program with qmake at…
PHA
  • 1,588
  • 5
  • 18
  • 37
0
votes
0 answers

How to change QLineSeries values?

I want to use function which is changing QLineSeries values. And when it called first time everything is good. But when it called second time looping is working too long. How to do this correctly? //... QChart *chart = new QChart(); …
Ufx
  • 2,595
  • 12
  • 44
  • 83
0
votes
1 answer

Qt bar chart with many series in one plot

I'm creating a QChart bar plot. I have a previously unknown number of QBarSets (I know the number of QBarSets during runtime - but maybe between 1-10) and a, possibly high number of categories (10-1000). QVector barSets; for(int i=0;…
user7431005
  • 3,899
  • 4
  • 22
  • 49
0
votes
1 answer

ChartView not showing BarSets data

in qml, i create a ChartView: ChartView { id : mChart title: "Bash History Graph" anchors.fill: parent legend.alignment: Qt.AlignBottom antialiasing: true animationOptions:…
linarcx
  • 116
  • 3
  • 17
0
votes
0 answers

what is the function or the slot which is responsable of plot update in QChart?

I need to plot in live with Qchart, but it didn't update with the code below. So I am searching the function or the slot which is responsable of plot update, so I will activate it by myself. def __init__(self, params): super().__init__() …
gxmad
  • 1,650
  • 4
  • 23
  • 29
0
votes
0 answers

How to change the default location of the legend on a QChartView control

I need to place the legend at the bottom of the chart (inside the colored box as per the print-screen attached) Any suggestions? Also I want the legend to be displayed on the same line, but when I do, the text gets shrinked.
gxmad
  • 1,650
  • 4
  • 23
  • 29
0
votes
1 answer

How to force QChartView to paint only part of itself

I'm building an application that plots measurement data using the QtCharts library. Some important things that should be mentioned are: I am dealing with time series. The measurement data is obtained offline, which means it has already been…
Onat Tanriover
  • 131
  • 1
  • 1
  • 4
-1
votes
1 answer

Qchart Remove the line point from bottom

I am new in QT, I want to build a chart. In the chart, i want to show only line. You can see the picture with is attached. How can i remove this point?1 Thank you.
bossman48
  • 3
  • 3
-1
votes
1 answer

QChart set tick with uneven space

In QChart, how can I set tick with uneven space? In the example chart below, notice the first grid is smaller than others. How is it actually done? Thanks.
YeP
  • 191
  • 5
  • 18
1 2 3 4 5 6 7
8