42 #ifndef QFONTCOMBOBOX_H 43 #define QFONTCOMBOBOX_H 45 #include <QtGui/qcombobox.h> 46 #include <QtGui/qfontdatabase.h> 48 #ifndef QT_NO_FONTCOMBOBOX 63 FontFilters fontFilters;
77 NonScalableFonts = 0x2,
78 MonospacedFonts = 0x4,
79 ProportionalFonts = 0x8
83 void setFontFilters(FontFilters
filters);
84 FontFilters fontFilters()
const;
86 QFont currentFont()
const;
90 void setCurrentFont(
const QFont &f);
93 void currentFontChanged(
const QFont &f);
111 #endif // QT_NO_FONTCOMBOBOX bool event(QEvent *event)
Reimplemented Function
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QFontComboBox widget is a combobox that lets the user select a font family.
The QString class provides a Unicode character string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QFontDatabase class provides information about the fonts available in the underlying window syste...
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QComboBox widget is a combined button and popup list.
FontFilter
This enum can be used to only show certain types of fonts in the font combo box.
static const char *const filters[3]
QSize sizeHint() const
This implementation caches the size hint to avoid resizing when the contents change dynamically...
The QFont class specifies a font used for drawing text.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QEvent class is the base class of all event classes.