Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Add extra qml plugins to QML designer

    Tools
    3
    3
    4073
    Loading More Posts
    • 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.
    • T
      terietor last edited by

      Hello,

      is it possible to create a qml plugin(either a c++ one or a pure qml one) and to add it to the qml designer?

      Also in which directory my plugins has to go?

      thanks in advance

      terietor.gr

      1 Reply Last reply Reply Quote 0
      • S
        sraboisson last edited by

        bq. is it possible to create a qml plugin(either a c++ one or a pure qml one) and to add it to the qml designer?

        We have the same problem, has anyone a smart solution ?

        bq. Also in which directory my plugins has to go?

        The plugins folder is located in lib/qtcreator/plugins/<Company>

        1 Reply Last reply Reply Quote 0
        • T
          ThomasHartmann last edited by

          What do you want to achieve?

          Yes, one can add C++ plugins to QmllDesigner by deriving from QmlDesigner::IWidgetPlugin.
          This allows extending the item library (Just have a look at the symbian components plugin).

          But the plugin constructor could also register more custom qml components for the property editor.

          The property editor can be extended by pure qml by adding .qml files to
          share/qtcreator/qmldesigner/propertyeditor.
          QtWebKit/WebViewSpecifics.qml is a good example.

          <Type>Spefics basically means that the type is derived from Item and the .qml only redefines the parts "specfic" for that type relative to Item.
          One could also add a complete new custom type <Type>Pane.qml (e.g. Item.qml).
          If you need you own custom widget here, you could register it in a c++ plugin as mentioned above.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post