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. Qt Creator API Core::ActionBuilder not present in coreplugin/actionmanager/actionmanager.h
Forum Updated to NodeBB v4.3 + New Features

Qt Creator API Core::ActionBuilder not present in coreplugin/actionmanager/actionmanager.h

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 312 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.
  • E Offline
    E Offline
    Ewan Green
    wrote on last edited by Ewan Green
    #1

    I'm attempting to modify Qt Creator's Beautifier plugin.
    Using Qt 6.6.0 with MSVC 2019 targeting Qt Creator 12.0.1 with plugin development; all obtained through the installer.

    I've done a sparse checkout of the Qt Creator repository, only including /src/plugins/beautifier.
    I've opened Beautifier's CMakeLists.txt in Qt Creator and the project generates successfully once I've told it the path to my instance of Qt Creator.

    Beautifier makes repeated use of a class called ActionBuilder (link) in the Core namespace, supposedly a part of the coreplugin API. The online docs (https://doc.qt.io/qtcreator-extending/core.html) and the header included in the plugin development component both have no mention of this class. As such I get undefined reference errors and the plugin fails to compile.

    Would I be better off checking out the v12.0.1 tag and working with an outdated version of the plugin, or using the very latest version of the whole IDE and plugin collection? Maybe I am spoiled by Qt's API stability but neither of these seem like a great idea.

    Ewan Green

    andrA 1 Reply Last reply
    0
    • andrA andr

      This post is deleted!

      andrA Offline
      andrA Offline
      andr
      wrote on last edited by
      #3

      ActionBuilder is entirely new API in master branch which is not present in 12.x. It is effectively a convenience wrapper around ActionManager::registerAction() and related functions. The existing plugins will be converted over time, the Beautifier plugin is one of the usual guinea pigs, so that's why you see it there, in master.

      If you need to build explicitly against 12.0.1 you cannot use ActionBuilder. If you get compile errors from some code you checked out it means that you are probably not on the right branch.

      1 Reply Last reply
      0
      • E Ewan Green

        I'm attempting to modify Qt Creator's Beautifier plugin.
        Using Qt 6.6.0 with MSVC 2019 targeting Qt Creator 12.0.1 with plugin development; all obtained through the installer.

        I've done a sparse checkout of the Qt Creator repository, only including /src/plugins/beautifier.
        I've opened Beautifier's CMakeLists.txt in Qt Creator and the project generates successfully once I've told it the path to my instance of Qt Creator.

        Beautifier makes repeated use of a class called ActionBuilder (link) in the Core namespace, supposedly a part of the coreplugin API. The online docs (https://doc.qt.io/qtcreator-extending/core.html) and the header included in the plugin development component both have no mention of this class. As such I get undefined reference errors and the plugin fails to compile.

        Would I be better off checking out the v12.0.1 tag and working with an outdated version of the plugin, or using the very latest version of the whole IDE and plugin collection? Maybe I am spoiled by Qt's API stability but neither of these seem like a great idea.

        andrA Offline
        andrA Offline
        andr
        wrote on last edited by
        #2
        This post is deleted!
        andrA 1 Reply Last reply
        0
        • andrA andr

          This post is deleted!

          andrA Offline
          andrA Offline
          andr
          wrote on last edited by
          #3

          ActionBuilder is entirely new API in master branch which is not present in 12.x. It is effectively a convenience wrapper around ActionManager::registerAction() and related functions. The existing plugins will be converted over time, the Beautifier plugin is one of the usual guinea pigs, so that's why you see it there, in master.

          If you need to build explicitly against 12.0.1 you cannot use ActionBuilder. If you get compile errors from some code you checked out it means that you are probably not on the right branch.

          1 Reply Last reply
          0
          • E Ewan Green has marked this topic as solved on

          • Login

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