QtCreator plugin example
-
I wanted to create a Qt Creator plugin for QtCreator and tried to start with the example provided here: http://doc.qt.digia.com/qtcreator-extending/creating-plugins.html
Therefore I compiled the sources(5.0.1) and the Qt Creator(2.6.1) and started developing. I also finished the second part of the tutorial "Creating your first plugin".
After compiling the new instance of the QtCreator starts and my plugin is registered in QtCreator -> About Plugins...
But I have no menu entry in Tools-> and in the bar on the left side I have every entry at least twice. (Welcome, Welcome, Edit, Edit, Edit and so on).
I also have several application output warnings and errors, which tell me that it is tried to add a duplicate object or the action is already registered.The application output says (only part of it):
PluginManagerPrivate::addObject(): trying to add duplicate object
addOverrideAction /: Action / is already registered for context 128 Core.GeneralOutputPane.
registerShortcut: action already registered, id "QtCreator.Sidebar.Outline" .
registerShortcut: action already registered, id "QtCreator.Sidebar.Projects" .
registerShortcut: action already registered, id "QtCreator.Sidebar.File System" .
registerShortcut: action already registered, id "QtCreator.Sidebar.CppEditor.TypeHierarchy" .
registerShortcut: action already registered, id "QtCreator.Sidebar.Bookmarks" .
registerShortcut: action already registered, id "QtCreator.Sidebar.Class View" .
registerShortcut: action already registered, id "QtCreator.Sidebar.Open Documents" .
registerShortcut: action already registered, id "QtCreator.Sidebar.Open Documents" .And a lot of more entries. Am I doing something wrong or is there another example for writing a plugin?
-
This is a complete shot in the dark, but:
"PluginManagerPrivate::addObject(): trying to add duplicate object "
makes me wonder if you aren't attempting to load the plug-in twice?
-
I am not quite sure, but I don´t think so.
I am following the example linked above - "Creating your first plugin"- and do not modify any code. Just typing in the information and running the project - with linking to the existing build.