KXmlGui C++ Classes

KXmlGui is a collection of convenience classes and widgets to manage your own main QtWidgets window. More...

Namespaces

KUndoActions

Provides functions that creates undo/redo actions for a QUndoStack with KDE's default icons and shortcuts

Classes

KAboutApplicationDialog

Standard "About Application" dialog box

KActionCategory

Categorize actions for KShortcutsEditor

KActionCollection

A container for a set of QAction objects

KBugReport

A dialog box for sending bug reports

KEditToolBar

A dialog used to customize or configure toolbars

KHelpMenu

Standard KDE help menu with dialog boxes

KKeySequenceWidget

A widget to input a QKeySequence

KMainWindow

Represents a top-level main window

KMainWindowInterface

D-Bus interface to KMainWindow

KShortcutWidget

KShortcutsDialog

Dialog for configuration of KActionCollection and KGlobalAccel

KShortcutsEditor

Widget for configuration of KAccel and KGlobalAccel

KToggleToolBarAction

KToolBar

Floatable toolbar with auto resize

KToolTipHelper

An event filter used to enhance tooltips

KXMLGUIBuilder

KXMLGUIClient

KXMLGUIFactory

KXmlGuiWindow

KMainWindow with convenience functions and integration with XmlGui files

Detailed Description

A window can be created using KXmlGuiWindow and KMainWindow.

Shortcuts can be centrally managed using KActionCollection.

The actions are configured through a XML description and hooks in the application code. The framework supports merging of multiple description for example for integrating actions from plugins.

KXMLGui makes use of the Kiosk authorization functionality of KConfig (see the KAuthorized namespace in that framework). Notably, QAction instances added to a KActionCollection are disabled if KAuthorized::authorizeAction() reports that they are not authorized. The items on the standard help menu (KHelpMenu) can likewise be disabled based on Kiosk settings, and toolbar editing can be restricted.

See KActionCollection, KHelpMenu and KToolBar documentation for more information.