Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qtcharts
    Log in to post

    • SOLVED QT charts extremely slow - QLineSeries
      QML and Qt Quick • python qtcharts qtchart qlineseries • • Witc  

      25
      0
      Votes
      25
      Posts
      294
      Views

      "append" causes a redraw. There is no way to disable the redraw that I can find. The QML api for charts is kinda crappy for adding data points. Which is why I had to use "replace" in C++. I have done thousands of points this way and it doesn't cause delays in the UI interface.
    • SOLVED About the impact of changing from QGuiApplication to QApplication
      QML and Qt Quick • qapplication qtcharts qtchart qguiapplication • • ynakane  

      4
      0
      Votes
      4
      Posts
      250
      Views

      @J-Hilk Thank you for answering the question.
    • UNSOLVED Need Help to Improve QML QChartView and CPP Interaction
      QML and Qt Quick • qml qtcharts cpp qchartview • • Sandip Rakhasiya  

      2
      0
      Votes
      2
      Posts
      150
      Views

      Take a look at VXYModelMapper . It lets you create series from a QAbstractTableModel with not all the glue code you did here.
    • UNSOLVED PointLables on series Hide under screen close to axis in QtCharts (c++)
      General and Desktop • c++ qt5 qtcharts • • Usama  

      1
      0
      Votes
      1
      Posts
      149
      Views

      No one has replied

    • SOLVED PySide6 QQmlApplicationEngine can't find QtCharts
      QML and Qt Quick • qtcharts pyside6 qqmlapplication • • Tauri  

      3
      0
      Votes
      3
      Posts
      1027
      Views

      @JonB Thanks for pointing that out, I completely missed it. I'll go with PySide2 until more features are released in Qt6 like you mentioned. Thanks again.
    • UNSOLVED build qtcharts with OpenGL ES2
      Mobile and Embedded • qtcharts opengl es2 • • DungeonLords  

      2
      0
      Votes
      2
      Posts
      376
      Views

      Wating bugfix https://bugreports.qt.io/browse/QTBUG-85053
    • UNSOLVED QtCharts recalculate/update axis for new series values
      General and Desktop • update qtcharts axis qchart • • pauledd  

      2
      0
      Votes
      2
      Posts
      809
      Views

      so for now I use this which seems to work... xAxis->setRange(0,dat.size()); yAxis->setRange(*std::min_element(dat.constBegin(),dat.constEnd()),*std::max_element(dat.constBegin(),dat.constEnd()));
    • SOLVED Real time Plotting Line chart
      General and Desktop • qtcharts ubuntu 16.04 qt5.9.1 real time plot qtlineseries • • Andrex_Qt  

      8
      0
      Votes
      8
      Posts
      6398
      Views

      @mrjj thank you :)
    • SOLVED DateTimeAxis update
      QML and Qt Quick • qtcharts qdatetime • • lopeztel  

      7
      0
      Votes
      7
      Posts
      612
      Views

      @Gojir4 yeah, that's more or less how I used the Component.onCompleted
    • SOLVED Property of object is not a function
      QML and Qt Quick • qml qtquick qtcharts mqtt • • lopeztel  

      6
      0
      Votes
      6
      Posts
      6679
      Views

      @lopeztel said in Property of object is not a function: This is what happens when you spend hours staring at the screen ... Sometimes when you have had too much to think you need a break and coffee.
    • UNSOLVED QCharts
      General and Desktop • qtcharts qlineseries • • Pk23  

      1
      0
      Votes
      1
      Posts
      236
      Views

      No one has replied

    • UNSOLVED Truncated labels in Y-axis of QChartView
      General and Desktop • qtcharts qchartview qvalueaxis • • PauloCarvalhoRJ  

      3
      1
      Votes
      3
      Posts
      1684
      Views

      Hi Eventhough this thread is quite old, I faced a similar issue with this truncated axis labels. I found a workaround which is working for me by removing and adding the axes again to the chart. Here is the example code I use (precondition: axes must be added once to chart and series before): auto axes = chart()->axes(); QHash<QAbstractSeries*, QList<QAbstractAxis*>> seriesAxes; for (auto serie : series) { auto attachedAxes = serie->attachedAxes(); for (auto axis : attachedAxes) { if (axes.contains(axis)) { auto &serieAxes = seriesAxes[serie]; serieAxes.append(axis); } } } for (auto axis : axes) { chart()->removeAxis(axis); auto alignment = axis->alignment(); chart()->addAxis(axis, alignment); } QHashIterator<QAbstractSeries*, QList<QAbstractAxis*>> iSeriesAxes(seriesAxes); while (iSeriesAxes.hasNext()) { auto serie = iSeriesAxes.next().key(); auto axes = iSeriesAxes.value(); for (auto axis : axes) { serie->attachAxis(axis); } } Cheers, Reto
    • UNSOLVED Unknown modules QT:Charts, QT:quick.
      General and Desktop • qtquick qtcharts cross-compiling qtvirtualkeyboa qtraspberrypi • • Andrex_Qt  

      7
      0
      Votes
      7
      Posts
      4789
      Views

      @SGaist thanks I‘ll bookmark that as well I was just googleing qtcharts source and took the firts link 🙈
    • SOLVED Change QGraphicsTextItem edit trigger from single click to double click
      General and Desktop • qgraphicsscene qtcharts • • martonmiklos  

      3
      1
      Votes
      3
      Posts
      995
      Views

      @SGaist Hi Sam, Thank you for your hint, but my first problem was preventing the edit trigger on single click. For the posterity I have ended up with the following solution: Disable the textInteraction flags by default Override the QGraphicsTextItem::sceneEvent with the following: bool ValueAxisLabel::sceneEvent(QEvent *event) { if (event->type() == QEvent::GraphicsSceneMouseDoubleClick) { setTextInteractionFlags(Qt::TextEditorInteraction); bool ret = QGraphicsTextItem::sceneEvent(event); // QGraphicsTextItem::sceneevent needs to be processed before // the focus setFocus(Qt::MouseFocusReason); return ret; } return QGraphicsTextItem::sceneEvent(event); } The textInteractionFlags should be disabled in the overridden focusOutEvent.
    • UNSOLVED Unable to remove axes from QChart
      General and Desktop • qtcharts qchart qlineseries qabstractaxis qscatterseries • • Dilip D  

      1
      0
      Votes
      1
      Posts
      1371
      Views

      No one has replied

    • UNSOLVED QT charts use 50% of CPU
      General and Desktop • qtcharts charts qtchart qt 5.8 • • Swapnil_Shelke  

      6
      0
      Votes
      6
      Posts
      2267
      Views

      I'd recommend using https://doc.qt.io/qt-5.10/qxyseries.html#replace-5 Replacing points one by one destroys a cpu. The metrics for me was just not even worth measuring - it was just an immediate hell no - forget that - I need faster updates. I like declarative QML for gui as a preference but calling replace on a single point fires way too many signals and takes way too long. I throw my QML LineSeries to a QXYSeries and call replace in c++ In the future I'll probably just declare my series in C++. I wish I could have a better supported hybrid of c++ and QML charts but I have this working very fast using useOpenGL : true; (you can also c++ setUseOpenGL(true) )
    • UNSOLVED How to customize BarCategoryAxis labels and BarSeries?
      QML and Qt Quick • qtcharts charts barchart • • Praveen_2017  

      1
      0
      Votes
      1
      Posts
      611
      Views

      No one has replied

    • UNSOLVED Qt Charts: Access Violation exception
      General and Desktop • visual studio qtcharts • • Cephas  

      9
      0
      Votes
      9
      Posts
      6009
      Views

      In case anyone else falls into this error, i found the solution was that my Debug build in Visual studio was linked against QChart.lib, not QChartd.lib. Once i changed this it worked.
    • UNSOLVED Scrollable QML Charts
      QML and Qt Quick • qtcharts scrollbar • • pra7  

      2
      0
      Votes
      2
      Posts
      1123
      Views

      Worth linking this topic to the answer documented on StackOverflow: https://stackoverflow.com/questions/46886443/scrollable-qml-charts
    • UNSOLVED Can someone provide a working example of VXYModelMapper with lineseries chart ?
      QML and Qt Quick • qml model qtcharts cpp qtchart • • SaranshVora  

      7
      1
      Votes
      7
      Posts
      3068
      Views

      @rahulch_pp Try to comment the line 18 of main.qml " animationOptions: ChartView.AllAnimations". It seems to be buggy from Qt5.12 (and also Qt5.12.1)
    • UNSOLVED QtCharts : Scatter plot Matrix
      General and Desktop • qtcharts • • dridk2  

      2
      0
      Votes
      2
      Posts
      1418
      Views

      do you want to plot the axis and legend? or just the pixels? and you want to plot the matrix from image or from data?
    • SOLVED Close QChartView with main window?
      General and Desktop • mainwindow qtcharts qchart qchartview close • • pauledd  

      3
      0
      Votes
      3
      Posts
      1388
      Views

      Works, thank you.
    • UNSOLVED Qtcharts with visual C++
      3rd Party Software • qtcharts visual c++ namespace • • awawawa  

      2
      0
      Votes
      2
      Posts
      1388
      Views

      @awawawa Hi. Try in your test.h as follows: #ifndef TEST_H #define TEST_H #include <QtCharts> QT_CHARTS_USE_NAMESPACE #include <QMainWindow> #include "ui_test.h" class test : public QMainWindow { [...] Do not modify your ui_test.h.
    • UNSOLVED Resizing axis causes artifacts in a LineSeries binded to QAbstractTableModel
      QML and Qt Quick • qml qtquick2 qtcharts modeldata • • nickaein  

      1
      0
      Votes
      1
      Posts
      704
      Views

      No one has replied

    • SOLVED QtCharts causing linking errors (LNK2019)
      General and Desktop • qtcharts lnk2019 lnk2001 qbarset • • ashkan849  

      11
      0
      Votes
      11
      Posts
      8741
      Views

      Thanks a lot! solve my problem, it is really easy to foget that!
    • SOLVED Custom Chart using QtCharts
      General and Desktop • qtcharts custom chart • • Peppy  

      2
      0
      Votes
      2
      Posts
      771
      Views

      I've found out that it has already been implemented. https://bugreports.qt.io/browse/QTBUG-50544
    • UNSOLVED Visualize value on Qt Chart View
      General and Desktop • qtcharts • • ValentinMichelet  

      4
      0
      Votes
      4
      Posts
      8020
      Views

      OK so this example is about QLineSeries, not QBarSeries, and there is a reason: QLineSeries has clicked(QPointF) and hovered(QPointF, bool) signals, QBarSeries doesn't. So I think I'll have to simply implement a BarView that displays the value, using QGraphics framework.
    • QtCharts - Logarithmic QDateTimeAxis
      General and Desktop • qtcharts qt5.7 • • tngamer  

      5
      0
      Votes
      5
      Posts
      1310
      Views

      You should have subscribed to the mailing list. You message would have gone through directly.
    • SOLVED QtCharts not useable in spite of the header include
      General and Desktop • qtcharts header include • • HenrikSt.  

      6
      0
      Votes
      6
      Posts
      1909
      Views

      @Wieland No problem :)
    • UNSOLVED QCharts segmentation fault even on Qt examples on BeagleBone Black
      QML and Qt Quick • qtcharts qt 5.6 • • usefulQtLover  

      3
      0
      Votes
      3
      Posts
      1342
      Views

      Hi and welcome to devnet, How did you compile that module for your BBB ?
    • UNSOLVED Question: How to find zero position/origin for Qtcharts graph
      General and Desktop • qtcharts graph qspline • • RTjen  

      1
      0
      Votes
      1
      Posts
      577
      Views

      No one has replied

    • QtCharts problem with Spline
      General and Desktop • qtcharts qsplineseries • • RTjen  

      8
      0
      Votes
      8
      Posts
      3715
      Views

      @RTjen which begs to differ, is this a known bug with the Spline function I don't know, as I said I don't use the module, but you could look here (you can login with your forum credentials). One thing that caught my eye though is this bug, which doesn't speak well of the implementation of the charts module, as the developer provided some lazy excuse (this is simply implemented by notifying the owner of the destruction). Anyway, you could either file a bug report or try something else. My father (who uses a commercial license) gave up on the charts and is currently using QCustomPlot, so you could try that if it provides what you're after. I hope that helps. Kind regards.
    • SOLVED Make QtCharts PieSeries clickable
      QML and Qt Quick • qml qtcharts clickevent • • nickrobison  

      3
      0
      Votes
      3
      Posts
      1179
      Views

      @vladstelmahovsky Thanks! That worked like a charm. It also gave me a good starting for digging into the interaction code and figuring out how the mouse handlers work between QML and C++.
    • UNSOLVED How to use QtCharts in qbs project?
      General and Desktop • qtcharts qbs • • Baer1987  

      1
      0
      Votes
      1
      Posts
      631
      Views

      No one has replied

    • SOLVED Subclassing QXYSeries in QtCharts
      General and Desktop • qtcharts subclassing • • midnite  

      3
      0
      Votes
      3
      Posts
      1179
      Views

      Hello, Thanks you for the answer. Mid'.