简体   繁体   English

Plot 数据由 Qt 图表(qml - Z33B8D767C1F7C7984D900797E2BB7)

[英]Plot data by Qt Charts ( qml - QT Creator)

I want to plot data in PySide/qml application (using QT Creator).我想在 PySide/qml 应用程序中使用 plot 数据(使用 QT Creator)。 I found nice Qt Charts module url link我发现了不错的 Qt 图表模块url 链接

but in componets in Qt Creator can not be found.但在 Qt Creator 的组件中找不到。 So I installed it manually like that:所以我像这样手动安装它:

pip install PyQt6-Charts PyQt6

then I tried to import QtCharts in my main.qml file, but there is still error: QML module not found然后我尝试在我的main.qml文件中import QtCharts ,但仍然出现错误:未找到 QML 模块

What I am doing wrong?我做错了什么? Thank you very much.非常感谢。

you should install Qt Framework from here ,你应该从这里安装 Qt 框架

then you see this:然后你会看到:

在此处输入图像描述

In Qt6 be sure that you installed Qt 5 Compatibility Module在 Qt6 中确保您安装了 Qt 5 兼容模块

在此处输入图像描述

then it will work.那么它将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM