|  | Home · Overviews · Examples |

# QFontComboBox Class Reference
[com.trolltech.qt.gui module]

The `QFontComboBox` widget is a combobox that lets the user select a font family. More...

Inherits `QComboBox`.

## Detailed Description

The `QFontComboBox` widget is a combobox that lets the user select a font family.

The combobox is populated with an alphabetized list of font family names, such as Arial, Helvetica, and Times New Roman. Family names are displayed using the actual font when possible. For fonts such as Symbol, where the name is not representable in the font itself, a sample of the font is displayed next to the family name.

`QFontComboBox` is often used in toolbars, in conjunction with a `QComboBox` for controlling the font size and two `QToolButton`s for bold and italic.

When the user selects a new font, the `currentFontChanged` signal is emitted in addition to `currentIndexChanged`.

Call `setWritingSystem` to tell `QFontComboBox` to show only fonts that support a given writing system, and `setFontFilters` to filter out certain types of fonts as e.g. non scalable fonts or monospaced fonts.

See also `QComboBox`, `QFont`, `QFontInfo`, `QFontMetrics`, `QFontDatabase`, and Character Map Example.