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. Qml Plugin Create and use in application

Qml Plugin Create and use in application

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 430 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Delavega77
    wrote on last edited by
    #1

    Hallo I', trying to build up a qml plugin,
    i created a QtQuick2 Extension PLugin and once builded i got the plugin.dll.
    So I tried to generate qmltypes: I put the qmldir file in the same directory of the dll and gave the following command:

    qmlplugindump.exe -nonrelocatable -v oboComponents 1.0 C:/Users/Diego/Documents/build-NetTcpConnection-Desktop_Qt_5_12_2_MinGW_64_bit2-Release/oboComponents C:/Users/Diego/Documents/build-NetTcpConnection-Desktop_Qt_5_12_2_MinGW_64_bit2-Release/oboComponents/plugins.qmltypes

    But I got the following error:
    Incorrect number of positional arguments

    this is the qmldir file:
    module oboComponents
    plugin NetTcpConnection

    If try to import the plugin in a project of course the pulgin is no loaded.

    Who can help me?
    Thank you

    raven-worxR 1 Reply Last reply
    0
    • D Delavega77

      Hallo I', trying to build up a qml plugin,
      i created a QtQuick2 Extension PLugin and once builded i got the plugin.dll.
      So I tried to generate qmltypes: I put the qmldir file in the same directory of the dll and gave the following command:

      qmlplugindump.exe -nonrelocatable -v oboComponents 1.0 C:/Users/Diego/Documents/build-NetTcpConnection-Desktop_Qt_5_12_2_MinGW_64_bit2-Release/oboComponents C:/Users/Diego/Documents/build-NetTcpConnection-Desktop_Qt_5_12_2_MinGW_64_bit2-Release/oboComponents/plugins.qmltypes

      But I got the following error:
      Incorrect number of positional arguments

      this is the qmldir file:
      module oboComponents
      plugin NetTcpConnection

      If try to import the plugin in a project of course the pulgin is no loaded.

      Who can help me?
      Thank you

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Delavega77
      the plugin dump tool is only needed for autocompletion in QtCreator. so thats not the cause for the plugin not being loaded.

      Whats the used Kit/compiler?
      Whats the name of the DLL?
      Where did you put the DLL?
      Whats the plugins import url?
      Did you specify an QML import path to the QQmlEngine?
      Are you aware that a release app can on load release plugins and a debug app can only load debug plugins?

      You might also want to set QML_IMPORT_TRACE=1 env variable and check the console output.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      • Login

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