PDA

View Full Version : Plugins not found



codeman
10th September 2015, 14:08
Hello Friends,

I have some problem which I could not understand.


I have a ListView. The delegates are "inlined". I have a custom MDModelPlugin imported. I set the Importpath "QML2_IMPORT_PATH" to the right location. Everything works fine. But when I move the delegates into seperate qml files where my main.qml resists I get an


"MDModelPlugin" not found

I run the main.qml against the qmlsecene.exe

anda_skoa
10th September 2015, 15:01
So the same import line works in main.qml but not in a qml file in the same directory as main.qml?

Cheers,
_

codeman
10th September 2015, 15:41
Yes, thats the point. Really confusing. Should I create a .qmlprojectfile?

anda_skoa
10th September 2015, 16:35
I doubt that would make a difference, but you can try.
The path of the QML file should really not make any difference.

What if you pass the delegate file to qmlscene, i.e. treat it like if it where the main QML file?

Cheers,
_

codeman
10th September 2015, 16:50
Ok, when I give my TestDelegate.qml as argument tp qmlscene.exe then my rectangle delegate pops up.
There is no problem in loading the plugin..

Added after 7 minutes:

And this the message from my qtcreator output when I run main.qml:



Start external tool "C:\Qt\5.5\msvc2013_64\bin\qmlscene.exe" C:/Users/myname/software/it_sw/QtQuick/QDLC/MDModelPlugin/main2.qml
file:///C:/Users/myname/software/it_sw/QtQuick/QDLC/MDModelPlugin/qmldir:-1 module "C:.Users.myname.software.it_sw.QtQuick.QDLC.MDMode lPlugin" plugin "MDModelPlugin" not found