|
|
Widget for interactive font selection.
enum |
FamilyList
Identifies the family (leftmost) list.
StyleList
Identifies the style (center) list
SizeList
Identifies the size (rightmost) list
|
Constructor. Create a new font picker dialog.
Parameters:
parent | The parent widget. |
name | The widget name. |
onlyFixedFonts | only display fonts which have fixed-width character sizes. |
fontList | A list of fonts to display, in XLFD format. If no list is formatted, the internal KDE font list is used. If that has not been created, X is queried, and all fonts available on the system are displayed. |
visibleListSize | The minimum number of visible entries in the fontlists. |
void |
Enables or disables a font column in the chooser. Use this function if your application does not need or supports all font properties.
Parameters:
font | Specifies the columns. An or'ed combination of FamilyList, StyleList and SizeList is possible. |
state | If false the columns are disabled. |
void |
Set the currently selected font in the chooser.
Parameters:
font | The font to select. |
onlyFixed | Readjust the font list to display only fixed
width fonts if true , or vice-versa.
|
QFont |
Returns: The currently selected font in the chooser.
QString |
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:
text | The new sample text. The current will be removed. |
QString |
[static]
Convert a QFont into the corresponding X Logical Font Description (XLFD).
Parameters:
theFont | The font to convert. |
Returns: A string representing the given font in XLFD format.
void |
[static]
Construct a list of font strings that matches the pattern.
Parameters:
list | The list is returned here. |
pattern | The font pattern. |
QSize |
[const virtual]
Returns the preferred size of the widget
void |
[signal]
connect to this to monitor the font as it is selected.