Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can't find plugin "modelsplugin"

Can't find plugin "modelsplugin"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 599 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    o_ios
    wrote on last edited by
    #1

    Complied Qt5.9 can't use TreeView in Qt quick 2 app.

    I complied Qt5.9 on vs2013 with static library.
    Found the TreeView can not be used.

    import QtQuick.Controls 1.4
    TreeView{}
    

    running output:

    qrc:/qt-project.org/imports/QtQuick/Controls/TreeView.qml:44 module "QtQml.Models" plugin "modelsplugin" not found
    

    both application and QT library complied with /MT flags.

    And under the QT_Path\qtbase\qml\QtQml\Models.2 folder, I only found .lib file ,no dll files:

     D:\QT\5.9.1\qtbase\qml\QtQml\Models.2 Directory
    
    2017/08/29  18:27    <DIR>          .
    2017/08/29  18:27    <DIR>          ..
    2017/08/04  13:02            40,982 modelsplugin.lib
    2017/08/04  13:02             1,367 modelsplugin.prl
    2017/08/04  13:02           189,646 modelsplugind.lib
    2017/08/04  13:02             1,384 modelsplugind.prl
    2017/06/22  14:46             4,537 plugins.qmltypes
    2017/06/22  14:46                90 qmldir
    

    did any one konw how to fix the problem?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      o_ios
      wrote on last edited by
      #2

      I'm wondering complied Qt library case the problem.

      Configure -qt-libjpeg -qt-zlib -qt-libpng -qt-libjpeg -developer-build  -nomake examples -nomake tests  -skip webkit -no-plugin-manifests  -no-openssl -skip multimedia -skip qt3d  -no-dbus -platform win32-msvc2017  -opensource -confirm-license -mp -no-warnings-are-errors -static
      

      -no-plugin-manifests may case it. trying to recomplie Qt.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved