<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello.</p>
<p>I have a very simple empty program with a main.qml embedded in
the resources consisting of this</p>
<p><br>
</p>
<p>import QtQuick 2.9<br>
import QtQuick.Window 2.2</p>
<p>Window {<br>
visible: true<br>
width: 640<br>
height: 480<br>
// title: qsTr("Hello World")<br>
</p>
<p>}</p>
<p>and a main.cpp being</p>
<p>#include <QGuiApplication><br>
#include <QQmlApplicationEngine><br>
<br>
#include <QFileInfo><br>
#include <QDir><br>
#include <QStandardPaths><br>
<br>
int main(int argc, char *argv[])<br>
{<br>
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);<br>
QGuiApplication app(argc, argv);<br>
<br>
QQmlApplicationEngine engine;<br>
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));<br>
if (engine.rootObjects().isEmpty())<br>
return -1;<br>
<br>
return app.exec();<br>
}<br>
</p>
<p>I am building this in Android, Linux, Mac, Windows and iOS and it
works everywhere but iOS because it fails to locate qml modules in
the device. Application exits saying</p>
<p>QmlApplicationEngine failed to load component<br>
qrc:/main.qml:2 module "QtQuick.Window" is not installed<br>
qrc:/main.qml:1 module "QtQuick" is not installed<br>
qrc:/main.qml:2 module "QtQuick.Window" is not installed<br>
qrc:/main.qml:1 module "QtQuick" is not installed</p>
<p>So the question is, do I need to put something special for the
case of the iOS in the pro file in order for these modules to be
included? I look at the examples and I fail to see anything there.
What am I missing or doing wrong?</p>
<p>Thanks in advance.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<code class="cpp hljs"></code>
</body>
</html>