无法连接到 QML 模拟层(QML Puppet) [英] Cannot Connect to QML Emluation Layer (QML Puppet)

查看:30
本文介绍了无法连接到 QML 模拟层(QML Puppet)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了全新的 QT,当我创建空的 QT Quick 项目或打开任何现有的 QT Quick 示例时,我的 QML 设计器无法工作.它显示无法连接到 QML 仿真层(QML Puppet)"错误.

I just made the fresh QT installation and when I create empty QT Quick project or open any of existing QT Quick examples, my QML designer doesn't work. It shows "Cannot Connect to QML Emluation Layer (QML Puppet)" error.

我尝试重新安装 QT,重新启动,安装其他 QT 工具包版本,并尝试在工具包的 32 位/64 位默认/opengl 版本之间切换,但似乎没有什么对我有用.我能够成功运行设计器一次,在我关闭它并尝试重新打开文件后它再次停止工作.我也尝试搜索,但没有找到任何解决方案.我也尝试在QT论坛上提问,但没有得到任何答复.

I tried to reinstall QT, reboot, installed additional QT kit versions and tried to switch between 32bit/64bit default/opengl versions of the kit and nothing seems to work for me. I was able to successfully run the designer ONCE, and after I closed it and tried to re-open the file it stopped working again. I also tried to search, but didn't find any solution. I also tried to ask on QT forums, but didn't receive any answer.

我的系统是 Windows 7,安装了 Visual Studio 2013.感谢您的帮助!

My system is Windows 7, with Visual Studio 2013 installed. Thanks for your help!

推荐答案

这样做:

  • 转到 QT Creator 首选项(菜单栏 | 工具 > 选项)

  • Go to QT Creator Preferences (Menu Bar | Tools > Options)

选择 QT 快速选项(选项标题 - 左侧).

Select QT Quick Option (Options headings - left side).

单击 QT 快速设计器 选项卡.

QML Emulation Layer 分组下,选择使用使用选定 QT 构建的 QML Emulation Layer".

Under QML Emulation Layer grouping, select "Use QML Emulation Layer that is built with selected QT".

无需选择路径,

  • 然后点击确定.

它将重建您的设计器视图.为我工作.

It will rebuild your designer view. Worked for me.

这篇关于无法连接到 QML 模拟层(QML Puppet)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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