[Qt-qml] How to deploy a QML app with WebView on a machine without a Qt installation?
Girish Ramakrishnan
girish at forwardbias.in
Thu Jun 30 07:37:07 CEST 2011
Hi Johan,
On Thu, Jun 30, 2011 at 10:15 AM, Johan Paul <johan.paul at gmail.com> wrote:
>>> It should be in the same dir as the qmlwebkitplugin.dll
>>> ($QTINSTALLDIR/imports/QtWebKit). If you cannot find it, just create a
>>> file named qmldir with contents as "plugin qmlwebkitplugin".
>>
>> Thank you very much! I will test this tomorrow when I am back at the
>> office and let you know.
>
> Hi Girish,
>
> I tested copying the qmldir file to the folder where my
> qmlwebkitplugin.dll is on the machine without Qt installed. However,
> it did not change the outcome.. :-/ QML WebView is still not being
> loaded.
>
> However, this is not that surprising to me, now that I think of it.
> The machine that has Qt installed did not have the qmldir file in the
> plugin import location either, but the application could load the
> plugin successfully anyway.
That doesn't sound right. AFAIK, QML shouldn't be loading dll's
without a qmldir file. Maybe it's picking up another Qt from your
path? If you set the environment variable QML_IMPORT_TRACE=1, it
should give you lots of debug from the importing code. Can you see
what's happening there or maybe paste the output from both machines.
Girish
More information about the Qt-qml
mailing list