Add extra qml plugins to QML designer
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
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>
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
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.