LineSeries in ChartView only visible on my machine with OpenGL enabled
-
Software Config: PySide6 6.7.2, Python 3.9.1 (it's a WinPython distribution)
IDE: VS Code and Eclipse with PyDevHi,
I'm developing an application that contains some graphs using QtCharts. When I run the application on my machine, everything is fine. When my coworkers run the application, they cannot see the LineSeries in the ChartView. The series is there, because I can print it's count and I'm getting the right number.
All of our graphics drivers are up to date and we should be running all the same versions of things, with the exception that I was initially developing in Qt Creator/Design Studio, but I've uninstalled those in favor of VS Code.
Does anything happen during the installation of Qt Creator that would alter my setup so that I can see the LineSeries, even after I've uninstalled it?
OpenGL is pretty much required in our case, as we have a decently large number of data points that need to be graphed, and the chart is pretty laggy without it.
Any help is appreciated!
Best,
Nick
-
Hi and welcome to devnet,
Do you have the same graphic stack on both machines ?
On a related note, you might want to check the upcoming
QtGraphQt Graphs module which should be better optimized for your use case. -
Hi and welcome to devnet,
Do you have the same graphic stack on both machines ?
On a related note, you might want to check the upcoming
QtGraphQt Graphs module which should be better optimized for your use case.Thanks for the welcome :)
By graphics stack, do you mean hardware? We both have RTX A4000 GPUs. The rest of our system hardware should also be the same.
How do I reference the upcoming QtGraph module in my project? Is there a pre-release candidate that is available?
Thanks!
-
Yes that was what I was asking for. Did you check that you are running the same version of the drivers ? (Just in case there's was an update one of you may have missed since the last time you checked)
Sorry, I made a typo, it's Qt Graphs. The module is currently in technical preview but it seems importable with PySide6.
from PySide6 import QtGraphs
-
Yes that was what I was asking for. Did you check that you are running the same version of the drivers ? (Just in case there's was an update one of you may have missed since the last time you checked)
Sorry, I made a typo, it's Qt Graphs. The module is currently in technical preview but it seems importable with PySide6.
from PySide6 import QtGraphs
@SGaist I assume it's the same version, since we're both up to date in Nvidia's GeForce Experience app.
I'll look into QtGraphs :) How similar to QtCharts is it? I'm guessing it's not a drop in replacement.
Another question (or concern) I'd have about QtGraphs is: does it support zooming/panning? QtCharts has member functions for zooming and scrolling, but I don't see any in the documentation for QtGraphs.
I also don't see how to add series programmatically (like the
createSeries
method in QtCharts'ChartView
component). -
IIRC, the app version and driver version might not be linked.
As for Qt Graph, AFAIK, the goal is for it to replace Qt Charts in an improved way but I haven't had the occasion to use it yet so I am sorry I can't be of more use on that front.