<?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[Difference between QQmlApplicationEngine and QtQuick2ApplicationViewer]]></title><description><![CDATA[<p dir="auto">I started developing my app with Qt 5.1. So I created a new QtQuick Application with the QtCreator wizard. The Application is started with the following code in main.cpp:</p>
<p dir="auto">@#include &lt;QtGui/QGuiApplication&gt;<br />
#include "qtquick2applicationviewer.h"</p>
<p dir="auto">int main(int argc, char *argv[])<br />
{<br />
QGuiApplication app(argc, argv);</p>
<pre><code>QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile&amp;#40;QStringLiteral("qml/MyApp/main.qml"&amp;#41;&amp;#41;;
viewer.showExpanded();

return app.exec&amp;#40;&amp;#41;;
</code></pre>
<p dir="auto">}@</p>
<p dir="auto">Now with Qt 5.3 I created a new QtQuick Application with the QtCreator wizard and the startup process has changed in main.cpp:</p>
<p dir="auto">@#include &lt;QGuiApplication&gt;<br />
#include &lt;QQmlApplicationEngine&gt;</p>
<p dir="auto">int main(int argc, char *argv[])<br />
{<br />
QGuiApplication app(argc, argv);</p>
<pre><code>QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));

return app.exec&amp;#40;&amp;#41;;
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">Are there any important differences between the startup strategies, like performance impacts? My Application runs on Android, if that matters.</p>
]]></description><link>https://forum.qt.io/topic/42583/difference-between-qqmlapplicationengine-and-qtquick2applicationviewer</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 09:24:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42583.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jun 2014 14:06:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Difference between QQmlApplicationEngine and QtQuick2ApplicationViewer on Mon, 16 Jun 2014 14:48:35 GMT]]></title><description><![CDATA[<p dir="auto">You can run QML profiler to test the speed.</p>
]]></description><link>https://forum.qt.io/post/232082</link><guid isPermaLink="true">https://forum.qt.io/post/232082</guid><dc:creator><![CDATA[Vincent007]]></dc:creator><pubDate>Mon, 16 Jun 2014 14:48:35 GMT</pubDate></item></channel></rss>