The QFontEnginePlugin class is the base class for font engine factory plugins in Qt for Embedded Linux. 更多...
| 头: | #include <QFontEnginePlugin> |
| Since: | Qt 4.3 |
| 继承: | QObject |
该类在开发且可能改变。
| QFontEnginePlugin (const QString & foundry , QObject * parent = 0) | |
| ~QFontEnginePlugin () |
| virtual QList<QFontEngineInfo> | availableFontEngines () const = 0 |
| virtual QAbstractFontEngine * | create (const QFontEngineInfo & info ) = 0 |
| virtual QStringList | keys () const |
The QFontEnginePlugin class is the base class for font engine factory plugins in Qt for Embedded Linux.
QFontEnginePlugin is provided by font engine plugins to create instances of subclasses of QAbstractFontEngine .
The member functions create () 和 availableFontEngines () must be implemented.
另请参阅 QAbstractFontEngine and QFontEngineInfo .
Creates a font engine plugin that creates font engines with the specified foundry and parent .
Destroys this font engine plugin.
[pure virtual]
QList
<
QFontEngineInfo
> QFontEnginePlugin::
availableFontEngines
() const
Implemented in subclasses to return a list of QFontEngineInfo objects that represents all font engines the plugin can create.
[pure virtual]
QAbstractFontEngine
* QFontEnginePlugin::
create
(const
QFontEngineInfo
&
info
)
Implemented in subclasses to create a new font engine that provides a font that matches info .
[虚拟]
QStringList
QFontEnginePlugin::
keys
() const
Returns a list of foundries the font engine plugin provides. The default implementation returns the foundry specified with the constructor.