[Qt-creator] [SOLVED] Plugin question

Enrico Ros enrico.qt at email.it
Tue Jul 7 11:28:46 CEST 2009


Thanks a lot for the reply.
Using the Core::Constants::C_GLOBAL_ID context shows up my menu entries! This 
"context" stuff is nice.

The "external plugins" is not needed, I was only thinking on provinding 3rd 
party plugins to QtCreator. The open repository is a better solution to that 
anyways!

Enrico

On Tuesday 07 July 2009 11:07:49 Daniel Teske 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. 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
 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 L’offerta più completa per le tue vacanze al mare è quella di Riccione Turismo! Bimbi gratis, spiaggia attrezzata, sport e benessere in hotel
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9309&d=7-7



More information about the Qt-creator-old mailing list