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. How does ActionManager actually work?
Qt 6.11 is out! See what's new in the release blog

How does ActionManager actually work?

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 846 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am trying to design an ActionManager of my own being inspired by the Qt Creator's ActionManager. The documentation on it is not very verbose though and I just cannot understand it properly. Can someone please explain how exactly does it work?

    I am particularly confused about the Context class and what purpose it serves. It seems to glue the registered actions and objects together but I am still fuzzy on how it's done since it does not seem to hold any relevant information itself. Are the information about the registered actions, menus and objects stored elsewhere?

    So far I have been able to create rather simple manager that accounts for actions and connects them to widgets based on focus. But having more advanced features such as having two widgets "active" at the same time really requires the higher level of abstraction - contexts. Hence my attempts to understand how Qt Creator does it.

    Thanks! :-)

    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