C

MCU.Config.defaultFontFamily

Sets a default font family for Text items.

Description

Determines the default font.family for Text and StaticText elements. The name of the font family is to be specified as a string. The default value is "DejaVu Sans".

See Text Rendering and Fonts for font engine-specific details.

Usage

This property is accepted in the main application .qmlproject file. It takes a string, and the default value is "DejaVu Sans".

Code example:

MCU.Config {
    defaultFontFamily: "Comic Sans"
}

Since

This property was introduced in QmlProject API 1.3 .

See also QUL_DEFAULT_FONT_FAMILY.

Available under certain Qt licenses.
Find out more.