September 30, 2011

Giorgos Tsiapaliokas Giorgos Tsiapaliokas
Lab Rat
67 posts

Add extra qml plugins to QML designer

 

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

 Signature 

terietor.gr

2 replies

April 12, 2012

sraboisson sraboisson
Lab Rat
8 posts

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 ?

Also in which directory my plugins has to go?

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

April 16, 2012

ThomasHartmann ThomasHartma..
Ant Farmer
72 posts

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.

 
  ‹‹ QtCreator editor, select all, auto-indent selection and cursor problem [Solved]      [SOLVED]Adding Openssl Support ››

You must log in to post a reply. Not a member yet? Register here!