7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qwindowdefs.h>
9#include <QtGui/qfont.h>
11#include <QtWidgets/qdialog.h>
23 Q_PROPERTY(
QFont currentFont READ currentFont WRITE setCurrentFont NOTIFY currentFontChanged)
24 Q_PROPERTY(FontDialogOptions options READ options WRITE setOptions)
28 NoButtons = 0x00000001,
29 DontUseNativeDialog = 0x00000002,
30 ScalableFonts = 0x00000004,
31 NonScalableFonts = 0x00000008,
32 MonospacedFonts = 0x00000010,
33 ProportionalFonts = 0x00000020
44 QFont currentFont()
const;
46 QFont selectedFont()
const;
48 void setOption(FontDialogOption
option,
bool on =
true);
49 bool testOption(FontDialogOption
option)
const;
50 void setOptions(FontDialogOptions options);
51 FontDialogOptions options()
const;
60 FontDialogOptions options = FontDialogOptions());
The QDialog class is the base class of dialog windows.
bool eventFilter(QObject *, QEvent *) override
\reimp
virtual void done(int)
Closes the dialog and sets its result code to r.
void fontSelected(const QFont &font)
void currentFontChanged(const QFont &font)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
#define QT_REQUIRE_CONFIG(feature)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent