FontPicker

Search for usage in LXR

FontPicker Class Reference
Inheritance diagram for FontPicker:

Properties

alias mfont
 
alias model
 

Signals

void fontModified (var font)
 

Detailed Description

A custom control use to pick a font and its properties.

This controls inherits from QQC2 Control, to checkout its inherited properties refer to the Qt Docs.

The FontPicker controls allows to pick a font and its derived properties - there is an extra option to restrain the listing to only mono-spaced fonts, using the model property model.onlyMonospaced. This option is visually exposed in the control with a Switch toggle.

The control includes a section to display a text paragraph using the selected font and its properties. The example text is a text area where more text can be typed.

Maui.Page
{
id: _page
anchors.fill: parent
Maui.Controls.showCSD: true
Maui.FontPicker
{
anchors.fill: parent
}
}

You can find a more complete example at this link.

Definition at line 53 of file FontPicker.qml.

Property Documentation

◆ mfont

font FontPicker::mfont
read

The current font picked.

Definition at line 68 of file FontPicker.qml.

◆ model

FontPickerModel FontPicker::model
read

The model used to list the fonts.

Remarks
This property is read-only

It is exposed to access its internal properties.

See also
FontPickerModel

Definition at line 63 of file FontPicker.qml.

Member Function Documentation

◆ fontModified

void FontPicker::fontModified ( var font)
signal

Emitted when a new font has been picked or its properties have been modified.

Parameters
fontThe font object of the newly modified font.

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.