[Qt-creator] Plugin question
Eike Ziller
eike.ziller at nokia.com
Wed Jul 8 13:46:25 CEST 2009
On Jul 7, 2009, at 11:07 AM, Teske Daniel (Nokia-D-Qt/Berlin) wrote:
> ext Enrico Ros schrieb:
>> Hello, I'm starting to develop a QtCreator Plugin, based on the
>> "helloworld"
>> example. I've got 3 quick questions:
>>
>> - the menu entry for the plugin and the "mode button" are disabled by
>> default, even if I enable the actions in the code. what do I miss
>> here?
>>
> Ah that's probably the "context" thing. Each action you register has a
> context. (Multiple plugins can register the same action in different
> contexts.)
> Context is mostly determined by which widget has focus and I think the
> mode. I don't think we have that documented.
Actually there is some documentation about that in the
Core::ActionManager class :)
You can generate the little bit of existing API documentation by
running qdoc3 on qtcreator-api.qdocconf in the doc/api/ directory
(after that open html/index.html).
++ Eike
> Try using the
> "globalcontext" first, that should enable your actions.
>
>> - is there a "plugin tutorial" or related doc (to ensure I'll do
>> things
>> right) ?
>>
> Not really. You can mostly look at the code of other plugins. Our code
> tends to be quite readeable. Or ask.
>
>> - are plugins meant to be build from outside the QtCreator's
>> sources too?
>>
> Noone has tried so far, I have no idea at all how much work that would
> be. Probably our build system would need some changes.
>
> daniel
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
--
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone +49 (0)30 6392 3255
Fax +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com
More information about the Qt-creator-old
mailing list