KWidgetsAddons
kfontchooser.h
74 FixedFontsOnly = 1, ///< Only show monospaced/fixed-width fonts, excluding proportional fonts, (the
QFlags< DisplayFlag > DisplayFlags
Stores a combination of DisplayFlag values.
Definition kfontchooser.h:82
void setColor(const QColor &col)
Sets the color to use for the font in the preview area.
Definition kfontchooser.cpp:292
void setBackgroundColor(const QColor &col)
Sets the background color to use in the preview area.
Definition kfontchooser.cpp:309
void setSampleBoxVisible(bool visible)
If visible is true the preview area will be shown, and vice-versa is it's false.
Definition kfontchooser.cpp:332
FontListCriteria
The selection criteria for the font families shown in the dialog.
Definition kfontchooser.h:184
@ FixedWidthFonts
If set, only show fixed fixed-width (monospace) fonts.
Definition kfontchooser.h:188
@ FixedFontsOnly
Only show monospaced/fixed-width fonts, excluding proportional fonts, (the checkbox to toggle showing...
Definition kfontchooser.h:74
void fontSelected(const QFont &font)
Emitted when the selected font changes.
void setSampleText(const QString &text)
Sets the sample text in the preview area; this is useful if you want to use text in your native langu...
Definition kfontchooser.cpp:327
FontDiffFlags fontDiffFlags() const
Returns the bitmask corresponding to the attributes the user wishes to change.
Definition kfontchooser.cpp:371
KFontChooser(QWidget *parent=nullptr)
Constructs a font picker widget.
Definition kfontchooser.cpp:134
void setFont(const QFont &font, bool onlyFixed=false)
Sets the currently selected font in the widget.
Definition kfontchooser.cpp:356
void enableColumn(int column, bool state)
Enables or disables a column (family, style, size) in the widget.
Definition kfontchooser.cpp:342
QFlags< FontDiff > FontDiffFlags
Stores an combination of FontDiff values.
Definition kfontchooser.h:66
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
void setFont(const QFont &)
sizeHint
visible
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.