[Qt-creator] Plugin question

Daniel Teske daniel.teske at nokia.com
Tue Jul 7 11:07:49 CEST 2009


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. 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



More information about the Qt-creator-old mailing list