<?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[How to deploy qml application on machine (Windows XP) without QtSDK]]></title><description><![CDATA[<p dir="auto">I created small test qml project. I have small main.qml file:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/import">@<bdi>import</bdi></a> QtQuick 1.0<br />
import com.nokia.symbian 1.0</p>
<p dir="auto">Rectangle {<br />
id: main<br />
width: 320<br />
height: 480<br />
color: "orange"</p>
<pre><code>Button
{
    text: "click"
}
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">I add next line in my <a href="http://QMLTest.pro" target="_blank" rel="noopener noreferrer nofollow ugc">QMLTest.pro</a> file:</p>
<p dir="auto">@QML_IMPORT_PATH = C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\imports@</p>
<p dir="auto">main.cpp file looks like this:</p>
<p dir="auto">@#include &lt;QtGui/QApplication&gt;<br />
#include "qmlapplicationviewer.h"</p>
<p dir="auto">Q_DECL_EXPORT int main(int argc, char *argv[])<br />
{<br />
QScopedPointer&lt;QApplication&gt; app(createApplication(argc, argv));</p>
<pre><code>QmlApplicationViewer viewer;

viewer.addImportPath("C:\\QtSDK\\Desktop\\Qt\\4.7.4\\msvc2008\\imports");
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
viewer.setMainQmlFile&amp;#40;QLatin1String("qml/QMLTest/main.qml"&amp;#41;);
viewer.showExpanded();

return app-&gt;exec&amp;#40;&amp;#41;;
</code></pre>
<p dir="auto">}@</p>
<p dir="auto">The structure of catalog looks like:</p>
<p dir="auto">@QMLTest<br />
|<br />
----QMLTest.exe<br />
|<br />
----qml<br />
|<br />
----QMLTest<br />
|<br />
----main.qml@</p>
<p dir="auto">When I launched the QMLTest.exe on my developing machine, I saw a button on an orange background.<br />
Then I made next actions:</p>
<h1>comment next line in main.cpp:</h1>
<p dir="auto">// viewer.addImportPath("C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\imports");</p>
<h1>comment next line in <a href="http://QMLTest.pro" target="_blank" rel="noopener noreferrer nofollow ugc">QMLTest.pro</a> file:</h1>
<p dir="auto">#QML_IMPORT_PATH = C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\imports</p>
<h1>copy folder "com" from C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\imports to "QMLTest/qml/QMLTest" folder</h1>
<p dir="auto">The structure of catalog looks like:</p>
<p dir="auto">@QMLTest<br />
|<br />
----QMLTest.exe<br />
|<br />
----qml<br />
|<br />
----QMLTest<br />
|<br />
----main.qml<br />
|<br />
----com<br />
|<br />
----nokia<br />
|<br />
----symbian<br />
|<br />
----Button.qml and others@</p>
<p dir="auto">When I launched the QMLTest.exe on my developing machine, I saw a button on an orange background.</p>
<p dir="auto">I add QtCore4.dll, QtDeclarative4.dll, QtGui4.dll, QtNetwork4.dll, QtScript4.dll, QtSql4.dll, QtXmlPatterns4.dll<br />
The structure of catalog on virtual machine looks like:</p>
<p dir="auto">@QMLTest<br />
|<br />
----QMLTest.exe<br />
|<br />
----QtCore4.dll, QtDeclarative4.dll, QtGui4.dll, QtNetwork4.dll, QtScript4.dll, QtSql4.dll, QtXmlPatterns4.dll<br />
|<br />
----qml<br />
|<br />
----QMLTest<br />
|<br />
----main.qml<br />
|<br />
----com<br />
|<br />
----nokia<br />
|<br />
----symbian<br />
|<br />
----Button.qml and others@</p>
<p dir="auto">When I launched the QMLTest.exe on virtual machine (windows XP), I saw white window without button.<br />
I copy qmlviewer.exe and QtOpenGL4.dll from C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin (developing machine) to QMLTest folder</p>
<p dir="auto">on virtual machine. Then I add QML_IMPORT_TRACE enviroment variable with value 1 and run qmlviewer:</p>
<p dir="auto">...<br />
QDeclarativeImports(file:///C:/QMLTest/qml/QMLTest/main.qml)::addImport: "." -1.-1 File as ""<br />
QDeclarativeImports(file:///C:/QMLTest/qml/QMLTest/main.qml)::addImport: "QtQuick" 1.0 Library as ""<br />
QDeclarativeImports(file:///C:/QMLTest/qml/QMLTest/main.qml)::addImport: "com/nokia/symbian" -1.-1 File as ""<br />
QDeclarativeImportDatabase::importPlugin: "qml.QMLTest.com.nokia.symbian" from</p>
<p dir="auto">"C:/QMLTest/qml/QMLTest/com/nokia/symbian/symbianplugin_1_0.dll"<br />
file:///C:/QMLTest/qml/QMLTest/main.qml:3:1: plugin cannot be loaded for module "qml.QMLTest.com.nokia.symbian": Cannot load</p>
<p dir="auto">library C:/QMLTest/qml/QMLTest/com/nokia/symbian/symbianplugin_1_0.dll: ?? ?????? ????????? ??????.<br />
import "com/nokia/symbian"</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.qt.io/topic/15729/how-to-deploy-qml-application-on-machine-windows-xp-without-qtsdk</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 12:32:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15729.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Apr 2012 16:19:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to deploy qml application on machine (Windows XP) without QtSDK on Mon, 09 Apr 2012 13:46:26 GMT]]></title><description><![CDATA[<p dir="auto">It's working on developing machine (Windows 7). Thanks for the Colibri project. I didn't know about it.</p>
]]></description><link>https://forum.qt.io/post/135083</link><guid isPermaLink="true">https://forum.qt.io/post/135083</guid><dc:creator><![CDATA[Mapple]]></dc:creator><pubDate>Mon, 09 Apr 2012 13:46:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to deploy qml application on machine (Windows XP) without QtSDK on Mon, 09 Apr 2012 12:49:28 GMT]]></title><description><![CDATA[<p dir="auto">The sure thing is that you try to use the <em>Symbian</em> Components at an application that targets Desktop (Windows). It sounds enough for me. You have to find an other plugin that will replace the Symbian components that you try to use or you have to create them by your own. A project that i know of that you can use is "Qt Quick Colibri":<a href="https://projects.developer.nokia.com/colibri" target="_blank" rel="noopener noreferrer nofollow ugc">https://projects.developer.nokia.com/colibri</a> .</p>
]]></description><link>https://forum.qt.io/post/135074</link><guid isPermaLink="true">https://forum.qt.io/post/135074</guid><dc:creator><![CDATA[favoritas37]]></dc:creator><pubDate>Mon, 09 Apr 2012 12:49:28 GMT</pubDate></item></channel></rss>