Albert: that's because in Konsole (and other applications using KXmlGui) all actions are attached to the main window.
To be more precise, KXMLGUIClient::beginXMLPlug calls actionCollection()->addAssociatedWidget(w), and addAssociatedWidget attaches all actions in the collection to the passed widget.
Try some pure Qt application (I tested with textedit example from qtbase5-examples, with the removed toolbars).
Albert: that's because in Konsole (and other applications using KXmlGui) all actions are attached to the main window.
To be more precise, KXMLGUIClient: :beginXMLPlug calls actionCollectio n()->addAssocia tedWidget( w), and addAssociatedWidget attaches all actions in the collection to the passed widget.
Try some pure Qt application (I tested with textedit example from qtbase5-examples, with the removed toolbars).