<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Component is not ready message]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm trying to load busyIndicator from Qt Quick.<br />
My qml file:</p>
<pre><code>import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.2

ApplicationWindow {
    id: windowView
    width: 100
    height: 100
    visible: true

    modality: Qt.ApplicationModal
    color: "#00000000"
    flags: Qt.FramelessWindowHint | Qt.WA_TranslucentBackground

    BusyIndicator {
       id: busyIndication
       anchors.centerIn: parent
    }
}
</code></pre>
<p dir="auto">main.cpp:</p>
<pre><code>#include "busytest.h"
#include &lt;QGuiApplication&gt;
#include &lt;QQmlApplicationEngine&gt;
#include &lt;QQmlProperty&gt;
#include &lt;QQmlEngine&gt;
#include &lt;QQmlComponent&gt;
#include &lt;QFile&gt;
#include &lt;QObject&gt;
#include &lt;QQuickView&gt;

int main(int argc, char* argv[]) {
  QGuiApplication app(argc, argv);

//  QQmlApplicationEngine engine;
//  engine.load(QUrl(QStringLiteral("qrc:/busy/main.qml")));
//  if (engine.rootObjects().isEmpty())
//    return -1;

  QQmlEngine engine;
  QQmlComponent component(&amp;engine, QUrl::fromLocalFile ("qrc:/busy/main.qml"));
  QObject* object = component.create ();

  delete object;
  return app.exec();
}

</code></pre>
<p dir="auto">I get no error message when I build the project, but when I run it it always says <em><strong>QQmlComponent: Component is not ready</strong></em> and nothing happens. The section commented out in main.cpp works fine. What is wrong with the second version?<br />
Thank you for your help.</p>
]]></description><link>https://forum.qt.io/topic/84538/component-is-not-ready-message</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 23:21:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/84538.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Oct 2017 03:13:19 GMT</pubDate><ttl>60</ttl></channel></rss>