python-3.x - PyQt5 和 QtQuick

标签 python-3.x pyqt

当我尝试运行 PyQt5\examples\quick\tutorials\extending\chapter1-basics 文件夹中存在的 PyQt5 QtQuick 示例时,出现此错误:

QQmlExpression: Expression file:///(...)/example.qml:17:15 depends on non-NOTIFYable properties:  
    PieChart::name  
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(void): Could not initialize egl display: error 12289  

QtQuick: failed to create OpenGL context

我需要配置一些东西才能运行这个示例吗?

最佳答案

尝试安装DirectX Runtime ,重新启动并再次启动脚本。在某些情况下,PyQt QtQuick 需要它才能在 Windows 上正常工作。

关于python-3.x - PyQt5 和 QtQuick,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23720122/

相关文章:

python - 如何正确设置QSortFilterProxyModel

python - 在 py2exe 可执行文件中导入 rich_ipython_widget

python - 计算所有排列,包括所有子列表

python - 使用条件连接 NumPy 数组

python - 根据 json 响应创建单独的对象

python - 进度条从停止处恢复

python - 通过拖动 pyqt5 中的边缘来调整自定义小部件的大小

python - PyQt app.exec() 似乎是非阻塞的

python - 将 PIL 图像转换为 numpy 数组有时不起作用

python - 如何检查列表中的连续负数或正数以及Python中的条件?