PyQt5 和 QtQuick [英] PyQt5 and QtQuick

查看:126
本文介绍了PyQt5 和 QtQuick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When I try to run the PyQt5 QtQuick example present in the folder PyQt5\examples\quick\tutorials\extending\chapter1-basics I get this error:

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

我是否需要配置一些东西来运行这个例子?

Do I have to configure something for running this example?

推荐答案

尝试安装 DirectX 运行时,重新启动并再次启动脚本.在某些情况下,PyQt QtQuick 需要在 Windows 上正常工作.

Try to install DirectX Runtime, reboot and launch script again. It's needed for the PyQt QtQuick to work properly on Windows in some cases.

这篇关于PyQt5 和 QtQuick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆