[Qt-creator] Send a message to the general message panel
david.schulz at digia.com
Tue May 21 08:41:46 CEST 2013
Am 5/17/2013 11:45 PM, schrieb Thomas Meyer:
> how can I send a simple string (QString) from a plugin to the 'General
> Messages' panel (or pane)
> and how to the TextEditor (an opened text file)?
you can use EditorManager::currentEditor() to get the editor.
You receive an IEditor object, which you have to cast to ITextEditor.
ITextEditor define the function insert(const QString& string)....
Don't forget to add the TextEditor Plugin as a dependencie to your plugin :)
> Where can I find some documentation about the 'communication' (sending
> or receiving strings etc.)
> between plugins and the different panes (panels?) and the TextEditor?
> I have build a simple plugin, which is a dialog with a button 'send
> text' and should send
> 'Hello world' to an opened text file. For 'debugging' I want to send
> 'send text pressed'
> to the 'General Messages' pane.
> Qt-creator mailing list
> Qt-creator at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qt-creator