QFontEnginePlugin Class

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 .

成员函数文档编制

QFontEnginePlugin:: QFontEnginePlugin (const QString & foundry , QObject * parent = 0)

Creates a font engine plugin that creates font engines with the specified foundry and parent .

QFontEnginePlugin:: ~QFontEnginePlugin ()

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.