Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How does ActionManager actually work?
Resurrection last edited by
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.