Results 1 to 5 of 5

Thread: Plugins not found

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Plugins not found

    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

    Qt Code:
    1. "MDModelPlugin" not found
    To copy to clipboard, switch view to plain text mode 

    I run the main.qml against the qmlsecene.exe

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Plugins not found

    So the same import line works in main.qml but not in a qml file in the same directory as main.qml?

    Cheers,
    _

  3. #3
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Plugins not found

    Yes, thats the point. Really confusing. Should I create a .qmlprojectfile?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Plugins not found

    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,
    _

  5. #5
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Plugins not found

    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:

    Qt Code:
    1. Start external tool "C:\Qt\5.5\msvc2013_64\bin\qmlscene.exe" C:/Users/myname/software/it_sw/QtQuick/QDLC/MDModelPlugin/main2.qml
    2. file:///C:/Users/myname/software/it_sw/QtQuick/QDLC/MDModelPlugin/qmldir:-1 module "C:.Users.myname.software.it_sw.QtQuick.QDLC.MDModelPlugin" plugin "MDModelPlugin" not found
    To copy to clipboard, switch view to plain text mode 
    Last edited by codeman; 10th September 2015 at 16:50.

Similar Threads

  1. GLU not found
    By induks in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2012, 13:49
  2. Replies: 1
    Last Post: 6th June 2012, 01:41
  3. Replies: 17
    Last Post: 2nd January 2011, 17:11
  4. Mac OS, plugins that user designer plugins
    By Royceybaby in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2010, 01:40
  5. I've found but how to use
    By Laser in forum Newbie
    Replies: 5
    Last Post: 11th August 2008, 13:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.