Questions tagged [qchartview]

47 questions
29
votes
2 answers

How to insert QChartView in form with Qt Designer?

I want to add QChart to the form. But I can't find it in the Widget Box. So I created it in the code. How can I insert it in QWidget or QFrame or something else? I want to set area of that widget in QtDesigner.
Ufx
  • 2,595
  • 12
  • 44
  • 83
4
votes
3 answers

February is missing from Qt charts (QML) datetime axis

I have created a QML chart ChartView { id: chart anchors.fill: parent antialiasing: true ValueAxis { id: axisY tickCount: 3 } DateTimeAxis { id: xTime } SplineSeries { id: chartseries …
Masthan
  • 727
  • 1
  • 8
  • 29
3
votes
1 answer

How to add a rectangle to a QML ChartView?

I want to put a number of rectangles as overlays to show regions of interest on a ChartView of ScatterSeries. However when I try to do this it is clearly using a different coordinate system to that of the ScatterSeries as it is drawn in a completely…
BobbyG
  • 536
  • 1
  • 7
  • 20
3
votes
1 answer

How to install QChartView in Qt Designer?

My problem is identical with that from this topic: How to insert QChartView in form with Qt Designer? however I still cannot solve it. I tried to download the plugin, but after typing qmake in the terminal, I get the following error: Unknown test…
Karol
  • 61
  • 1
  • 5
2
votes
0 answers

Click on the QChartView to draw crosshairs (PySide6)

I want to display crosshairs on a scatterplot created by the QChart at the position where I click the mouse. The following topic on how to display crosshairs on a graph was helpful. How to add a crosshair to a pyqt5 graph This works as expected at…
2
votes
0 answers

Export QChartView with specific size independent of widget size

I try to save QChartView in pdf file format. void ExportResult::printAsPdf(QString fileName, QChartView* chartView) { QPrinter printer(QPrinter::ScreenResolution); printer.setOutputFormat(QPrinter::PdfFormat); printer.setFullPage(true); …
Abolfazl Diyanat
  • 397
  • 2
  • 13
2
votes
1 answer

QCharts Crop to Rectangle and Use Horizontal Scroll

am trying to implement a custom graph going off the QtCharts Callout example. I want to restrict the selection of the chart to a specific area and make it possible to scroll horizontally while still displaying the Axis Values. the classes i am using…
BigL
  • 165
  • 1
  • 2
  • 15
2
votes
2 answers

Getting PySide2 QCharts to show up when using Qt Designer

I've have a similar problem to the question here: How to insert QChartView in form with Qt Designer? So I created my MainWindow of my UI in Qt Designer and I'm trying to get a QtChart to show up inside one of the tabs in my window. I'm importing the…
AWheeler
  • 23
  • 1
  • 8
2
votes
2 answers

QML QTQuick ChartView pass pointer to C++

I'm trying to make an Oscilloscope like Qt Quick application, based on the qtcharts-qmloscilloscope-example here In this example the traces (a QTQuick ChartView) are pre-allocated in the QML and updated via a timer. I would like to be able to add…
Jay M
  • 3,736
  • 1
  • 24
  • 33
2
votes
1 answer

How to disable right click action when using QRubberBand?

Whenever I press the right-click button, it sort of zooms out a little instead I want to restore the initial position of my QChart whenever I press the Right-Click. Is there a way to do this?
2
votes
1 answer

QLineSeries and QDateTimeAxis - Chart doesn't display values

I am trying to achieve something like https://doc.qt.io/qt-5.9/qtcharts-datetimeaxis-example.html . In a method I have this code QDateTime past = QDateTime::currentDateTime().addMonths(-10); QDateTime now = QDateTime::currentDateTime(); qreal…
vdomanico
  • 23
  • 1
  • 4
2
votes
1 answer

Warning QPainter inside paintEvent

I tried to draw some more information in QChartView so I re-implement paintEvent virtual void paintEvent(QPaintEvent *event) { QChartView::paintEvent(event); OmenChart *mchr = dynamic_cast(this->chart()); if(mchr ==…
chatzich
  • 1,083
  • 2
  • 11
  • 26
2
votes
1 answer

QChartView and QScatterSeries overrdide the label of a QPointF

I have a QChartView which displays some 2D points which are representing each one a specific project I want to label each point with the project name AND NOT with it's x,y coordinates as the default behaviour Is there any way to achieve override…
chatzich
  • 1,083
  • 2
  • 11
  • 26
2
votes
1 answer

QChartView QLineSeries select by mouse click

Unfortunately, I can't find any way to catch a signal of mouse click on any QLineSeries at QChartView. This is required for the subsequent increase in the thickness of the curve on the graph.
Johny Sins
  • 23
  • 1
  • 5
1
vote
1 answer

Qt6.5: MouseMove event prevents hover event from triggering

I am pretty new to Qt and C++. I have a component which inherits QChartView. In this component I want to override the "mouseMove" event from QChartView and I also want to connect the recieved "hovered" signal from QScatterSeries to a slot in the…
1
2 3 4