PySide6 QQmlApplicationEngine can't find QtCharts
-
Hello,
I'm trying to create a python app that runs qml files as its GUI using the PySide6 QQmlApplicationEngine.
Everything is working fine so far besides one module, I'm getting the following error with QtCharts:
"QQmlApplicationEngine failed to load component
file:///home/user/Projects/test/qml/main.qml:5:1: module "QtCharts" is not installed"When installing QT6 using the installer I made sure to check that I'm also installing QtCharts, and I do see a qtcharts folder in the "Qt/5.12.2/Src/" directory. Not sure exactly why I'm unable to load the module even though it looks to be installed.
All the info that I found online was talking about QtCreator which I'm not using, if possible I'd want to just write qml/py files in VS Code and work like that on my project. I'm new to QT so I'm not sure exactly if it's possible the way that I want it.
I'm running on Ubuntu 20.04, if any other info is needed please let me know.
Thanks in advance
-
@Tauri
I'm not sure but: if you had posted this in the Qt6 sub-forum and read the stickied https://forum.qt.io/topic/121651/read-before-posting-in-this-category, https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond tells you that Qt Charts for Qt6 is not slated for release till 6.1. And the 5.12.2 in that path you show appears to back that up. But I know no more than this.Why you have opted for Qt6/PySide6 I do not know. I would have stuck with Qt5/PySide2 if you want all features.