Hello, I think the problem is not related tot he folder, the must be something missing to load the plugin.
I enabled the QML Import Tracing: QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml)::addImport: "." -1.-1 File as "" QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml)::addImport: "QtQuick" 1.0 Library as "" QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml)::addImport: "QtWebKit" 1.0 Library as "" QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml::importExtension: loaded "Z:/usr/pflaig/4GNextGenTerminal- Demo/QtWebKit/qmldir" QDeclarativeImportDatabase::importPlugin: "QtWebKit" from "Z:/usr/pflaig/4GNextG enTerminal-Demo/QtWebKit/qmlwebkitplugin.dll" file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTerminal/Webcontent.qm l:2:1: plugin cannot be loaded for module "QtWebKit": Cannot load library Z:/usr /pflaig/4GNextGenTerminal-Demo/QtWebKit/qmlwebkitplugin.dll: Das angegebene Modu l wurde nicht gefunden. You can see that the application is detecting the plugin in the subfolder, but then module not found, why? The same when I'm using the default settings. QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml)::addImport: "." -1.-1 File as "" QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml)::addImport: "QtQuick" 1.0 Library as "" QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml)::addImport: "QtWebKit" 1.0 Library as "" QDeclarativeImports(file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTe rminal/Webcontent.qml::importExtension: loaded "C:/QtSDK/Desktop/Qt/4.7.3/mingw/ imports/QtWebKit/qmldir" QDeclarativeImportDatabase::importPlugin: "QtWebKit" from "C:/QtSDK/Desktop/Qt/4 .7.3/mingw/imports/QtWebKit/qmlwebkitplugin.dll" file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTerminal/Webcontent.qm l:2:1: plugin cannot be loaded for module "QtWebKit": Cannot load library C:/QtS DK/Desktop/Qt/4.7.3/mingw/imports/QtWebKit/qmlwebkitplugin.dll: Das angegebene M odul wurde nicht gefunden. Not the application is detecting the plugin in the QtSDK installation folder, but the same module not found. What had I overseen, copying the qmlviewer to the same folder will load the plugin without any problems. Patrick From: Mark Tucker [mailto:[email protected]] Sent: Wednesday, August 03, 2011 4:42 PM To: Flaig, Patrick; [email protected] Subject: RE: [Qt-qml] Deploy qt qml application Hello, Based on that directory structure, you would need to be adding your working directory to your QML imports path (i.e. the directory that your 4GNextGenTerminal.exe file is in). Informations on ways to add to the import path can be found here: http://doc.qt.nokia.com/4.7-snapshot/qdeclarativemodules.html#import-path While I'm no expert on the C++ side of things myself, I personally would have a subdirectory named "imports" that I would copy the QtWebKit folder into, and then I'd add that "imports" folder to the import path in my exe. Mark T From: [email protected] [mailto:[email protected]] On Behalf Of Flaig, Patrick Sent: 03 August 2011 14:36 To: [email protected] Subject: [Qt-qml] Deploy qt qml application Hello qt-qml list, I have some big problems getting all needed DLL's together to deploy a qt-qml application. Everything is working fine in Qt Creator if I run my application as debug or release configuration, but if I copy the application to another PC that has no Qt installed it is not fully running. Some more details: Operating System Windows 7 64bit QtSDK 4.7.3 mingw My qt-qml application is using the webkit plugin, and here I have the most problems, the qmlwebkitplugin.dll cannot be found, but it is in the path. file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTerminal/Webcontent.qml:2:1<file:///Z:\usr\pflaig\4GNextGenTerminal-Demo\qml\4GNextGenTerminal\Webcontent.qml:2:1>: plugin cannot be loaded for module "QtWebKit": Cannot load library Z:/usr/pflaig/4GNextGenTerminal-Demo/QtWebKit/qmlwebkitplugin.dll: Das angegebene Modul wurde nicht gefunden. Here's the structure of my deploy folder: Z:. │ 4GNextGenTerminal.exe │ libgcc_s_dw2-1.dll │ mingwm10.dll │ QtCore4.dll │ QtDeclarative4.dll │ QtGui4.dll │ QtNetwork4.dll │ QtScript4.dll │ QtSql4.dll │ QtSvg4.dll │ QtXml4.dll │ QtXmlPatterns4.dll │ QtWebKit4.dll │ ├───qml │ └───4GNextGenTerminal │ BookingDialog.qml │ BusinessTrip.qml │ BusinessTripModel.qml │ ButtonList.qml │ ButtonModel.qml │ dienstgang.svg │ gehen.svg │ info.svg │ Header.qml │ kalender.svg │ kommen.svg │ schmetterling.svg │ uidemo.qml │ Webcontent.qml │ ├───QtWebKit │ qmldir │ qmlwebkitplugin.dll │ └───imageformats qgif4.dll qico4.dll qjpeg4.dll qmng4.dll qsvg4.dll qtiff4.dll The complete application is running except the webkit part. Any ideas what I'm doing wrong? The webkit plugin is from C:\QtSDK\Desktop\Qt\4.7.3\mingw\imports\QtWebKit. Thanks a lot. Regards Patrick ________________________________ The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments. ________________________________ The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.
_______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
