|
|
A widget for interactive font selection.
While KFontChooser as an ordinary widget can be embedded in custom dialogs and therefore is very flexible, in most cases it is preferable to use the convenience functions in KFontDialog.
enum |
FamilyList
- Identifies the family (leftmost) list.
StyleList
- Identifies the style (center) list.
SizeList
- Identifies the size (rightmost) list.
|
Constructs a font picker widget.
Parameters:
void |
Enable or disable a font column in the chooser.
Use this function if your application does not need or supports all font properties.
Parameters:
void |
Set the currently selected font in the chooser.
Parameters:
QFont |
[const]
Returns: The currently selected font in the chooser.
void |
Set the currently selected charset in the chooser.
QString |
[const]
Returns: The currently selected charset in the dialog.
QString |
[const]
Returns: The current text in the sample text input area.
void |
Set the sample text.
Normally you should not change this text, but it can be better to do this if the default text is too large for the edit area when using the default font of your application.
Parameters:
QString |
[static]
Convert a QFont into the corresponding X Logical Font Description (XLFD).
Parameters:
Returns: A string representing the given font in XLFD format.
void |
[static]
Create a list of font strings that match pattern.
Parameters:
void |
[static]
Create a list of font strings.
Parameters:
QSize |
[const virtual]
Reimplemented for internal reasons.
void |
[signal]
connect to this to monitor the font as it is selected.