Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Add extra qml plugins to QML designer

Add extra qml plugins to QML designer

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 3 Posters 4.3k 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.
  • T Offline
    T Offline
    terietor
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      sraboisson
      wrote on last edited by
      #2

      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
      0
      • T Offline
        T Offline
        ThomasHartmann
        wrote on last edited by
        #3

        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
        0

        • Login

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