KFontAction Class

An action to select a font family. More...

Header: #include <KFontAction>
CMake: find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons)
Inherits: KSelectAction

Properties

Public Functions

KFontAction(QObject *parent)
KFontAction(uint fontListCriteria, QObject *parent)
QString font() const
void setFont(const QString &family)

Reimplemented Public Functions

virtual QWidget *createWidget(QWidget *parent) override

Detailed Description

On a toolbar this will show a combobox with all the fonts on the system.

Property Documentation

font : QString

Access functions:

QString font() const
void setFont(const QString &family)

Member Function Documentation

[explicit] KFontAction::KFontAction(QObject *parent)

KFontAction::KFontAction(uint fontListCriteria, QObject *parent)

[override virtual] QWidget *KFontAction::createWidget(QWidget *parent)

Reimplements: QWidgetAction::createWidget(QWidget *parent).

QString KFontAction::font() const

Note: Getter function for property font.

See also setFont().

void KFontAction::setFont(const QString &family)

Note: Setter function for property font.

See also font().