我在 Windows 上使用基于 Qt 4.7.4(32 位)的 Qt Creator 2.4.1。我必须使用表视图在 QML 中创建一个表。当我尝试导入 QtQuick.Controls 2.1 时,出现错误 QML MODULE NOT FOUND。基于 Qt 5.0.1 的 Qt Creator 2.6.2 上出现同样的错误。
任何帮助表示赞赏。
就我而言,运行qmake
已修复问题。
Update 2020 (new way):
In some cases it not helped. Instead this solution helped greatly.
In the QtCreator, open settings/preferences and go to QtQuick > QtQuick Designer and select Use QML emulation layer...
option in Qml Emulation Layer section and get your most newer version of Qt to it as follow:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)