KAboutApplicationDialog Class

Standard "About Application" dialog box. More...

Header: #include <KAboutApplicationDialog>
CMake: find_package(KF6 REQUIRED COMPONENTS XmlGui)
target_link_libraries(mytarget PRIVATE KF6::XmlGui)
Inherits: QDialog

Public Types

(since 4.4) enum Option { NoOptions, HideTranslators, HideLibraries }
flags Options

Public Functions

KAboutApplicationDialog(const KAboutData &aboutData, QWidget *parent = nullptr)
(since 4.4) KAboutApplicationDialog(const KAboutData &aboutData, KAboutApplicationDialog::Options opts, QWidget *parent = nullptr)

Detailed Description

This class provides the standard "About Application" dialog box that is used by KHelpMenu. It uses the information of the global KAboutData that is specified at the start of your program in main(). Normally you should not use this class directly but rather the KHelpMenu class or even better just subclass your toplevel window from KMainWindow. If you do the latter, the help menu and thereby this dialog box is available through the KMainWindow::helpMenu() function.

"KAboutApplicationDialog"

Member Type Documentation

[since 4.4] enum KAboutApplicationDialog::Option
flags KAboutApplicationDialog::Options

Defines some options that can be applied to the about dialog.

ConstantValueDescription
KAboutApplicationDialog::NoOptions0x0Shows the standard about dialog.
KAboutApplicationDialog::HideTranslators0x1Hides the translators tab.
KAboutApplicationDialog::HideLibraries0x2Since 5.77, hides the libraries tab. Since 5.87, hides the components tab (which replaces the libraries tab).

This enum was introduced in 4.4.

The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.

Member Function Documentation

[explicit] KAboutApplicationDialog::KAboutApplicationDialog(const KAboutData &aboutData, QWidget *parent = nullptr)

Constructs a fully featured "About Application" dialog box using existing aboutData.

You should set the toplevel window as the parent so that the dialog becomes centered.

[explicit, since 4.4] KAboutApplicationDialog::KAboutApplicationDialog(const KAboutData &aboutData, KAboutApplicationDialog::Options opts, QWidget *parent = nullptr)

Constructs a fully featured "About Application" dialog box using existing aboutData and the specified opts.

You should set the toplevel window as the parent so that the dialog becomes centered.

This function was introduced in 4.4.

See also Options.