qt - 第 : 1: Qt Quick emulation layer crashed 行

标签 qt qml qt-creator

我创建了一个空的 QT 快速应用程序。我的编译器是 MinGW 64。
我的项目有 main.qml 文件:

import QtQuick 2.14
import QtQuick.Window 2.14

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")
} 

但是当我想在设计器中查看它的 UI 时,它给了我一个错误:
行:1:Qt Quick 仿真层崩溃。

我将用户回退 QML 仿真层更改为“C:\Qt\Qt5.14.0\Tools\QtCreator\bin”,但它不起作用。

enter image description here

enter image description here

enter image description here

最佳答案

我对我的新人也有同样的不当行为 Qt Creator 安装在 Ubuntu 20.04 Qt6 .
我通过安装和使用 Qt5.12 解决了我的特定不当行为。在 Qt Quick Settings 中我选择了新安装的 Qt5.12 安装。 enter image description here

关于qt - 第 : 1: Qt Quick emulation layer crashed 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60624398/

相关文章:

c++ - qtcreator 在使用 cmake 构建时忽略 cmake 选项

c++ - 我无法使用 Qt 和 Boost 通过网络发送 header 大小

qt - 使用 QGraphicsObject 与 QGraphicsItem 的惩罚?

javascript - 创建与日历年不同的自定义年份? JS/QML

Qt QML : limit maximum FPS

linux - 如何在 Qt Creator 中抑制警告

windows - Qt + 声子 : doesn't play on some computers

qt - 升级 QT 5.4 或 Qt 5.5 - 安装并运行 - Ubuntu 14 和 15

c++ - QML/QtQuick与QWidget的双向连接

c++ - 有什么方法可以通过 Qt Designer 添加 QSystemTrayIcon