qtcharts | Qt Charts module provides a set of easy to use chart
kandi X-RAY | qtcharts Summary
kandi X-RAY | qtcharts Summary
QtCharts module
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of qtcharts
qtcharts Key Features
qtcharts Examples and Code Snippets
Community Discussions
Trending Discussions on qtcharts
QUESTION
I am streaming TimeSeries that I want to chart efficiently (20+ chart live on a small computer). I have tried PyQtChart and pyqtgraph on PyQt5, but with both libs, I am ending up redrawing the whole chart for each data that I receive, which doesn't feel optimal. I settled for PyQtChart because it was handling better DatetimeSeries, but happy to be proven wrong (and share the pyqtgraph code, just didn't want to make the post too big).
Bellow is my working code with PyQtChart using random datas, so that you can run it:
...ANSWER
Answered 2022-Mar-13 at 20:22You can use pglive package to plot Your data from live stream. It's based on pyqtgraph
and it can easily handle data rates of ~100Hz.
It's using DataConnector
, which stores data indeque
and uses pyqt signal to update plot thread-safe. You can also set update rate in Hz, if Your input data is updated in a high rate.
There are also some extra features available like leading line or crosshair, which makes it easy to show exact values under the mouse cursor.
Here is an example code, based on Your input:
QUESTION
I've been trying to build Qt 6.2.2 from source. I downloaded the sources package from the online installer but it fails each time, each time with a different error. I've tried a variety of configurations such as:
...ANSWER
Answered 2022-Jan-15 at 19:43Upgrade your compiler to the latest VS2019 version (16.11) - see also https://bugreports.qt.io/browse/QTBUG-97999
QUESTION
I am trying to declare an object as extern because I want a thread to be able to access and update it from a different file. But I get the following error message when I try to compile my code:
...ANSWER
Answered 2021-Nov-30 at 03:43extern a class member is not allowed, If we can do that, for instances of a class type, compiler don't know which address to resolve while linking. you can do like this:
QUESTION
I am aware it is possible to install PySide2 on Raspbian using the following command:
...ANSWER
Answered 2021-Nov-15 at 18:21So I finally found the solution myself. From what I understand, the reason you cannot find QtWebEngine in the Raspberry Pi OS repositories, is that the Pi OS is made to run on all Raspberry Pi's, including Pi 1 and Pi 2, which have an ARMv6 and ARMv7 CPU architecture respectively. The WebEngine module however is platform dependend and not tested, compiled and distributed for ARMv6/7 anymore, so they won't release it in the repositories for Raspberry Pi OS. Luckily though, the Raspberry Pi 3 that I use has ARMv8, so it is possible to install QtWebEngine from Debian repositories, which offer QtWebEngine for exactly that architecture. Here is how:
Open your sources.list
file
QUESTION
The following CMake's action will delete executable if RPATH is not the same.
...ANSWER
Answered 2021-Nov-08 at 12:17Why RPATH_CHECK in CMake deletes executable?
Because that's what it does. (?)
Is it correct behavior of CMake, or it is a bug?
Correct.
What RPATH_CHECK should do?
Check if the file has desired RPATH, and if it doesn't, the file should be removed.
If you have any other concerns about RPATH features in CMake, I posted the source code in the last answer - all is there. Search for RPATH_CHECK
in CMake source tree, and you'll find the find the function - from function names you can "guess" meaning and the algorithm used.
QUESTION
I am essentially trying to make a Gantt Chart in Qt. I was going to plot bars on a image. I am able to plot a Bar(green) starting at the beginning of a Chart but I also get a second Bar(green) closer to the end of the Chart. I think the plottable area of the Chart doesn't fill up the entire ChartView so it's doing some kind of repeated fill of the missing data(MAYBE?). Was hoping someone could tell me what I'm doing wrong. QT version 5.15.0.
...ANSWER
Answered 2021-Nov-02 at 02:56I made the 2 changes:
- paint the background in a slot function.
- emit the slotAreaChanged signal.
Here is the code
QUESTION
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:
...ANSWER
Answered 2021-Oct-18 at 18:35As you write in your ChartView class constructor,
ChartView needs to get QChart
as its parent. when you are trying to promote it you didn't set QChart as the parent of ChartView. so it didn't display.
and the second mistake is that you choose QWidget and you are trying to promote the chart view to it, choose one GraphicsView Item instead of QWidget.
But you shouldn't add your chart by promoting.
QUESTION
A little at lost as to why QChartView
will expand when put inside of a QTabWidget
.
Here's a picture of the application when QChartView
is not expanding (because it's hidden).
The black portion of the app is QOpenGLWidget
.
When I click on the chart view, it will gradually increase in size until QOpenGLWidget
is hidden.
When QChartView
is just in a QVBoxLayout
with QOpenGLWidget
, then this effect does not occur. It's only when I add QChartView
inside of the QTabWidget
that this happens. I'm trying to figure out how to have QChartView
not expand, and resize the same way other widgets do (such as the QTextEdit
widget in this example).
Here's the code, which was written as a minimal example to reproduce the effect.
...ANSWER
Answered 2021-Sep-17 at 18:29The problem is caused because the QChartView has the expansion sizePolicy as opposed to the QOpenGLWidget, so when it becomes visible it expands, hiding the other widget. The solution is to set a stretch factor associated with each widget in the layout:
QUESTION
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 i can see which page is open)).
From the main window, when one of the buttons is pressed, I want to open the above windows in a loop:
...ANSWER
Answered 2021-Sep-12 at 15:29Doing ui->graphicsView = new QChartView(chart);
does not replace the QChartView, you are just assigning the pointer. The solution is to reuse the existing QChartView so it changes to: ui->graphicsView->setChart(chart);
.
QUESTION
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 isolated the cause of this error and it seems to be whenever I try to instantiate either QLineSeries or QChart. There are NO red squiggles underneath my code. It all looks fine, until I try to instantiate either and then those errors appear.
I use QLineSeries a lot (I have 3 series), and I slowly commented out code until I found the culprit. The first line, me trying to create lineRedSeries = new QLineSeries;
results in the errors below. Also, even if I comment out everything and try to create QChart *chart = new QChart();
, it also causes the same errors.
Curiously enough, just declaring QLineSeries and QChartView in my h file doesn't cause this issue (so if I comment out the code in my cpp file). It's only when I try to create a QLineSeries or QChart that the errors occur.
I have removed a lot of unnecessary functions that are not pertinent for this question as my cpp file is quite long.
In my main.h
:
ANSWER
Answered 2021-Sep-09 at 21:37ADTF does not deploy QtCharts binaries because the license is incompatible. Qt is basically LGPL licenesed which works fine with ADTF license. But some components are licensed under GPL, QtCharts is one of it. You are not allowed to use QtCharts with ADTF because then you violate the combined work rule described within GPL. GPL is not working with commercial and closed source licenses, only with open source GPL compatible licenses like GPL itself, MPL or others. Anyway, because the binary is missing you are getting the error, that some dependencies are missing. But even when you put the binary there, it is not allowed, neither private nor commercial. Its incompatible and thats why ADTF tries to protect the customer and delivers only LGPL content. You even not allowed to use commercial Qt with ADTF using open source Qt because Qt declines mixing oss with commercial license even thats the same binary (politics...). Only chance, buy qtcharts standalone from qt marketplace then its compatible with LGPL. But you have to put the binary yourself. Or you link static, which is allowed with commercial/marketplace license from Qt.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install qtcharts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page