Pages
API Documentation
On this page

KXMLGUIBuilder Class

Collection of convenience classes and widgets to manage your own main QtWidgets window. More...

  • Header: #include <KXMLGUIBuilder>
  • CMake: find_package(KF6 REQUIRED COMPONENTS XmlGui)
    target_link_libraries(mytarget PRIVATE KF6::XmlGui)
  • Inherited By: KXmlGuiWindow

List of all members, including inherited members

Public Functions

Detailed Description

Implements the creation of the GUI (menubar, menus and toolbars) as requested by the GUI factory.

The virtual methods are mostly for historical reasons, there isn't really a need to derive from KXMLGUIBuilder anymore.

Member Function Documentation

[explicit] KXMLGUIBuilder::KXMLGUIBuilder(QWidget *widget)

Constructs a new KXMLGUIBuilder object from widget.

[virtual noexcept] KXMLGUIBuilder::~KXMLGUIBuilder()

Destructor.

[virtual] QWidget *KXMLGUIBuilder::createContainer(QWidget *parent, int index, const QDomElement &element, QAction *&containerAction)

Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element at index in the XML file.

parent The parent for the container.

index The index where the container should be inserted into the parent container/widget.

element The element from the DOM tree describing the container (use it to access container specified attributes or child elements).

containerAction The action created for this container; used for e.g. passing to removeContainer.

[virtual] void KXMLGUIBuilder::removeContainer(QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction)

Removes the given container.

parent The parent for the container.

element The element from the DOM tree describing the container (use it to access container specified attributes or child elements).

containerAction The action created for this container.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.