Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator plugin example
Forum Updated to NodeBB v4.3 + New Features

QtCreator plugin example

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dominik_j
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goblincoding
      wrote on last edited by
      #2

      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?

      http://www.goblincoding.com

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dominik_j
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved