# QTextCodec Class Reference
## [[QtCore](index.htm) module]
该持QTextCodec类提供文本编码之间的转换。[More...](#details)
### Types
* `enum ConversionFlag { DefaultConversion, ConvertInvalidToNull, IgnoreHeader }`
* `class **[ConversionFlags](index.htm)**`
* `class **[ConverterState](index.htm)**`
### Methods
* `__init__ (self)`
* `list-of-QByteArray aliases (self)`
* `bool canEncode (self, QString)`
* `QString convertToUnicode (self, str in, ConverterState state)`
* `QByteArray fromUnicode (self, QString uc)`
* `QTextDecoder makeDecoder (self)`
* `QTextDecoder makeDecoder (self, ConversionFlags flags)`
* `QTextEncoder makeEncoder (self)`
* `QTextEncoder makeEncoder (self, ConversionFlags flags)`
* `int mibEnum (self)`
* `QByteArray name (self)`
* `QString toUnicode (self, QByteArray)`
* `QString toUnicode (self, str chars)`
* `QString toUnicode (self, str in, ConverterState state = None)`
### Static Methods
* `list-of-QByteArray availableCodecs ()`
* `list-of-int availableMibs ()`
* `QTextCodec codecForCStrings ()`
* `QTextCodec codecForHtml (QByteArray ba)`
* `QTextCodec codecForHtml (QByteArray ba, QTextCodec defaultCodec)`
* `QTextCodec codecForLocale ()`
* `QTextCodec codecForMib (int mib)`
* `QTextCodec codecForName (QByteArray name)`
* `QTextCodec codecForName (str name)`
* `QTextCodec codecForTr ()`
* `QTextCodec codecForUtfText (QByteArray ba)`
* `QTextCodec codecForUtfText (QByteArray ba, QTextCodec defaultCodec)`
* `setCodecForCStrings (QTextCodec c)`
* `setCodecForLocale (QTextCodec c)`
* `setCodecForTr (QTextCodec c)`
* * *
## Detailed Description
该持QTextCodec类提供文本编码之间的转换。
Qt使用Unicode来存储,绘制和操作字符串。在许多情况下,您可能希望处理使用不同的编码数据。例如,大多数日本人的文件仍然存储在按住Shift JIS或ISO 2022-JP ,而俄罗斯用户往往有他们的KOI8-R或Windows - 1251文档。
Qt提供了一系列QTextCodec来控制班,以帮助将非Unicode格式与Unicode的。您也可以创建自己的编解码器类。
支持的编码有:
* Apple Roman
* [Big5](index.htm)
* [Big5-HKSCS](index.htm)
* CP949
* [EUC-JP](index.htm)
* [EUC-KR](index.htm)
* [GB18030-0](index.htm)
* IBM 850
* IBM 866
* IBM 874
* [ISO 2022-JP](index.htm)
* ISO 8859-1 to 10
* ISO 8859-13 to 16
* Iscii-Bng, Dev, Gjr, Knd, Mlm, Ori, Pnj, Tlg, and Tml
* JIS X 0201
* JIS X 0208
* KOI8-R
* KOI8-U
* MuleLao-1
* ROMAN8
* [Shift-JIS](index.htm)
* TIS-620
* [TSCII](index.htm)
* UTF-8
* UTF-16
* UTF-16BE
* UTF-16LE
* UTF-32
* UTF-32BE
* UTF-32LE
* Windows-1250 to 1258
* WINSAMI2
QTextCodecs可以用如下的一些本地编码的字符串转换为Unicode 。假设你有一些字符串编码在俄罗斯KOI8-R编码,并希望将其转换为Unicode 。最简单的方法来做到这一点是这样的:
```
[QByteArray](qbytearray.html) encodedString = "...";
QTextCodec *codec = QTextCodec.codecForName("KOI8-R");
[QString](qstring.html) string = codec->toUnicode(encodedString);
```
在此之后,`string`保存文本转换为Unicode 。从Unicode转换一个字符串到本地编码是一样简单:
```
[QString](qstring.html) string = "...";
QTextCodec *codec = QTextCodec.codecForName("KOI8-R");
[QByteArray](qbytearray.html) encodedString = codec->fromUnicode(string);
```
要读取或写入的文件在各种编码,使用[QTextStream](qtextstream.html)其[setCodec()](qtextstream.html#setCodec)功能。请参阅[Codecs](index.htm)例如对于QTextCodec来控制的应用程序文件I / O。
尝试将数据通过网络接收它时,在转换块,例如,当一些必须小心。在这种情况下,它可能是一个多字节字符将被分割在两个块。在最好的,这可能导致一个字符的损失和在最坏的情况导致整个转换失败。
在这些情况下使用的方法是创建一个[QTextDecoder](qtextdecoder.html)对象为编解码器和使用该[QTextDecoder](qtextdecoder.html)整个解码过程,如下所示:
```
QTextCodec *codec = QTextCodec.codecForName("Shift-JIS");
[QTextDecoder](qtextdecoder.html) *decoder = codec->makeDecoder();
[QString](qstring.html) string;
while (new_data_available()) {
[QByteArray](qbytearray.html) chunk = get_new_data();
string += decoder->toUnicode(chunk);
}
delete decoder;
```
该[QTextDecoder](qtextdecoder.html)对象维护块之间的状态,因此可以正常工作,即使多字节字符分割块之间。
### Creating Your Own Codec Class
支持新的文本编码可以通过创建子类QTextCodec来控制被加入到Qt的。
该纯虚函数描述编码器系统和编码器被用作需要在所支持的不同的文本文件格式[QTextStream](qtextstream.html)和X11下,为区域设置特定的字符输入和输出。
要添加另一个编码支持Qt的,请QTextCodec来控制的一个子类,并实现下表中列出的功能。
| Function | Description |
| --- | --- |
| [name](qtextcodec.html#name)() | Returns the official name for the encoding. If the encoding is listed in the [IANA character-sets encoding file](http://www.iana.org/assignments/character-sets), the name should be the preferred MIME name for the encoding. |
| [aliases](qtextcodec.html#aliases)() | Returns a list of alternative names for the encoding. QTextCodec provides a default implementation that returns an empty list. For example, "ISO-8859-1" has "latin1", "CP819", "IBM819", and "iso-ir-100" as aliases. |
| [mibEnum](qtextcodec.html#mibEnum)() | Return the MIB enum for the encoding if it is listed in the [IANA character-sets encoding file](http://www.iana.org/assignments/character-sets). |
| [convertToUnicode](qtextcodec.html#convertToUnicode)() | Converts an 8-bit character string to Unicode. |
| [convertFromUnicode](qtextcodec.html#convertFromUnicode)() | Converts a Unicode string to an 8-bit character string. |
您可能会发现它更方便,让您的编解码器类可以作为一个插件,见[How to Create Qt Plugins](index.htm)了解详情。
* * *
## Type Documentation
```
QTextCodec.ConversionFlag
```
| Constant | Value | Description |
| --- | --- | --- |
| `QTextCodec.DefaultConversion` | `0` | 无标志被设置。 |
| `QTextCodec.ConvertInvalidToNull` | `0x80000000` | 如果设置了这个标志,每个无效输入字符输出为一个空字符。 |
| `QTextCodec.IgnoreHeader` | `0x1` | 忽略任何Unicode字节顺序标记,并且不产生任何。 |
该ConversionFlags类型是一个typedef为[QFlags](index.htm)\u003cConversionFlag\u003e 。它存储ConversionFlag值的或组合。
* * *
## Method Documentation
```
QTextCodec.__init__ (self)
```
构造一个[QTextCodec](qtextcodec.html),并给它最高的优先级。该[QTextCodec](qtextcodec.html)应始终在堆(即构造`new`) 。 Qt可以拥有和应用程序终止时将其删除。
```
list-of-QByteArray QTextCodec.aliases (self)
```
子类可以返回一个数字的别名有问题的编解码器。
标准别名编解码器可以在被发现[IANA character-sets encoding file](http://www.iana.org/assignments/character-sets)。
```
list-of-QByteArray QTextCodec.availableCodecs ()
```
返回所有可用的编解码器的列表,按名称。通话[QTextCodec.codecForName](qtextcodec.html#codecForName)( ),得到[QTextCodec](qtextcodec.html)为名称。
该列表可以包含相同的编解码器的许多提到,如果编解码器具有别名。
**See also** [availableMibs](qtextcodec.html#availableMibs)( )[name](qtextcodec.html#name)()和[aliases](qtextcodec.html#aliases)( ) 。
```
list-of-int QTextCodec.availableMibs ()
```
返回的MIB可用于所有硬件编解码器的列表。通话[QTextCodec.codecForMib](qtextcodec.html#codecForMib)( ),得到[QTextCodec](qtextcodec.html)对MIB 。
**See also** [availableCodecs](qtextcodec.html#availableCodecs)()和[mibEnum](qtextcodec.html#mibEnum)( ) 。
```
bool QTextCodec.canEncode (self, QString)
```
返回True如果Unicode字符_ch_可以使用此编解码器完全编码,否则返回False 。
```
QTextCodec QTextCodec.codecForCStrings ()
```
[](qtextcodec.html)
[返回所使用的编解码器](qtextcodec.html)[QString](qstring.html)转换为和从`const char *`和QByteArrays 。如果这个函数返回0 (默认值) ,[QString](qstring.html)假定的Latin-1 。
**See also** [setCodecForCStrings](qtextcodec.html#setCodecForCStrings)( ) 。
```
QTextCodec QTextCodec.codecForHtml (QByteArray ba)
```
[](qtextcodec.html)
[尝试检测的HTML给定的字节数组中所提供的代码片段的编码,_ba_通过检查BOM(字节顺序标记)和内容类型的元头,并返回一个](qtextcodec.html)[QTextCodec](qtextcodec.html)例如,它能够将HTML转换为Unicode解码。如果该编解码器不能从所提供的内容检测_defaultCodec_返回。
此功能被引入Qt的4.4 。
**See also** [codecForUtfText](qtextcodec.html#codecForUtfText)( ) 。
```
QTextCodec QTextCodec.codecForHtml (QByteArray ba, QTextCodec defaultCodec)
```
[
这是一个重载函数。
](qtextcodec.html)
[尝试检测的HTML给定的字节数组中所提供的代码片段的编码,_ba_通过检查BOM(字节顺序标记)和内容类型的元头,并返回一个](qtextcodec.html)[QTextCodec](qtextcodec.html)例如,它能够将HTML转换为Unicode解码。如果编解码器不能被检测到,此重载返回的Latin-1[QTextCodec](qtextcodec.html)。
```
QTextCodec QTextCodec.codecForLocale ()
```
[
返回一个指向该编解码器为这个区域设置最合适。
在Windows上,编解码器将根据系统区域设置。在Unix系统中,开始用Qt 4.2 ,编解码器将使用_iconv_库。请注意,在两种情况下,编解码器的名称将是“系统” 。
](qtextcodec.html)
[**See also**](qtextcodec.html) [setCodecForLocale](qtextcodec.html#setCodecForLocale)( ) 。
```
QTextCodec QTextCodec.codecForMib (int mib)
```
[](qtextcodec.html)
[返回](qtextcodec.html)[QTextCodec](qtextcodec.html)相匹配的[MIBenum](qtextcodec.html#mibEnum) _mib_。
```
QTextCodec QTextCodec.codecForName (QByteArray name)
```
[](qtextcodec.html)
[搜索所有已安装](qtextcodec.html)[QTextCodec](qtextcodec.html)对象并返回一个最匹配_name_,与之匹配的是不区分大小写的。返回0 ,如果没有匹配的编解码器的名称_name_可以找到。
```
QTextCodec QTextCodec.codecForName (str name)
```
[](qtextcodec.html)
[搜索所有已安装](qtextcodec.html)[QTextCodec](qtextcodec.html)对象并返回一个最匹配_name_,与之匹配的是不区分大小写的。返回0 ,如果没有匹配的编解码器的名称_name_可以找到。
```
QTextCodec QTextCodec.codecForTr ()
```
[](qtextcodec.html)
[返回所使用的编解码器](qtextcodec.html)[QObject.tr](qobject.html#tr)( )在其参数。如果这个函数返回0 (默认值) , TR ()假定的Latin-1 。
**See also** [setCodecForTr](qtextcodec.html#setCodecForTr)( ) 。
```
QTextCodec QTextCodec.codecForUtfText (QByteArray ba)
```
[](qtextcodec.html)
[尝试检测所提供的代码片段的编码_ba_通过使用BOM(字节顺序标记) ,并返回一个](qtextcodec.html)[QTextCodec](qtextcodec.html)例如,能够将文本转换为Unicode解码。如果该编解码器不能从所提供的内容检测_defaultCodec_返回。
此功能被引入Qt的4.6 。
**See also** [codecForHtml](qtextcodec.html#codecForHtml)( ) 。
```
QTextCodec QTextCodec.codecForUtfText (QByteArray ba, QTextCodec defaultCodec)
```
[
这是一个重载函数。
](qtextcodec.html)
[尝试检测所提供的代码片段的编码_ba_通过使用BOM(字节顺序标记) ,并返回一个](qtextcodec.html)[QTextCodec](qtextcodec.html)例如,能够将文本转换为Unicode解码。如果编解码器不能被检测到,此重载返回的Latin-1[QTextCodec](qtextcodec.html)。
**See also** [codecForHtml](qtextcodec.html#codecForHtml)( ) 。
```
QString QTextCodec.convertToUnicode (self, str in, ConverterState state)
```
这种方法是抽象的,应在任何子类中重新实现。
[QTextCodec](qtextcodec.html)子类必须重新实现此功能。
将第一_len_字符_chars_从子类到Unicode的编码,并返回结果的[QString](qstring.html)。
_state_可以是0,在这种情况下的转换是无状态的,因此应该使用默认的转换规则。如果状态不为0 ,编解码器应在转换后保存的状态_state_,并调整remainingChars和结构的invalidChars成员。
```
QByteArray QTextCodec.fromUnicode (self, QString uc)
```
[](qbytearray.html)
[皈依_str_从Unicode到该编解码器的编码,并返回结果的](qbytearray.html)[QByteArray](qbytearray.html)。
```
QTextDecoder QTextCodec.makeDecoder (self)
```
[](qtextdecoder.html)
[创建](qtextdecoder.html)[QTextDecoder](qtextdecoder.html)存储足够的状态来解码的块`char *`数据来创建Unicode数据块。
来电者是负责删除返回的对象。
```
QTextDecoder QTextCodec.makeDecoder (self, ConversionFlags flags)
```
[](qtextdecoder.html)
[创建](qtextdecoder.html)[QTextDecoder](qtextdecoder.html)用指定的_flags_要解码的块`char *`数据来创建Unicode数据块。
来电者是负责删除返回的对象。
此功能被引入Qt的4.7 。
```
QTextEncoder QTextCodec.makeEncoder (self)
```
[](qtextencoder.html)
[创建](qtextencoder.html)[QTextEncoder](qtextencoder.html)存储足够的状态以Unicode数据块编码为`char *`数据。
来电者是负责删除返回的对象。
```
QTextEncoder QTextCodec.makeEncoder (self, ConversionFlags flags)
```
[](qtextencoder.html)
[创建](qtextencoder.html)[QTextEncoder](qtextencoder.html)用指定的_flags_以Unicode数据块编码为`char *`数据。
来电者是负责删除返回的对象。
此功能被引入Qt的4.7 。
```
int QTextCodec.mibEnum (self)
```
这种方法是抽象的,应在任何子类中重新实现。
的子类[QTextCodec](qtextcodec.html)必须重新实现此功能。它返回MIBenum (见[IANA character-sets encoding file](http://www.iana.org/assignments/character-sets)获取更多信息) 。重要的是,每[QTextCodec](qtextcodec.html)子类将返回此函数的正确独特的价值。
```
QByteArray QTextCodec.name (self)
```
[
这种方法是抽象的,应在任何子类中重新实现。
](qbytearray.html)
[](qbytearray.html)[QTextCodec](qtextcodec.html)子类必须重新实现此功能。它返回由子类支持的编码的名称。
如果该编解码器被注册为一个字在设置[IANA character-sets encoding file](http://www.iana.org/assignments/character-sets)此方法应为如果定义编解码器返回的首选MIME名称,否则其名称。
```
QTextCodec.setCodecForCStrings (QTextCodec c)
```
设置使用的编解码器[QString](qstring.html)转换为和从`const char *`和QByteArrays 。如果_codec_为0 (默认值) ,[QString](qstring.html)假定的Latin-1 。
**Warning:**一些编解码器不保留在ASCII范围的字符( 0x00到0x7F ) 。例如,日文Shift- JIS编码的反斜杠字符(为0x5A )映射到日元的性格。为了避免不良的副作用,我们建议避免这种编解码器与setCodecsForCString ( ) 。
**Warning:**此功能不[reentrant](index.htm#reentrant)。
**See also** [codecForCStrings](qtextcodec.html#codecForCStrings)()和[setCodecForTr](qtextcodec.html#setCodecForTr)( ) 。
```
QTextCodec.setCodecForLocale (QTextCodec c)
```
编解码器设置为_c_;这将被返回[codecForLocale](qtextcodec.html#codecForLocale)( ) 。如果_c_是一个空指针,编解码器被重置为默认值。
这可能需要为那些希望使用自己的机制设置的区域设置一些应用程序。
**See also** [codecForLocale](qtextcodec.html#codecForLocale)( ) 。
```
QTextCodec.setCodecForTr (QTextCodec c)
```
设置使用的编解码器[QObject.tr](qobject.html#tr)( )在它的参数_c_。如果_c_为0 (默认值) , TR ()假定的Latin-1 。
如果在程序中的文字引用的文字是不是在Latin-1编码,此功能可用于设置相应的编码。例如,韩国程序员开发的软件可以使用eucKR程序中的所有文本,在这种情况下, main()函数可能看起来像这样:
```
int main(int argc, char *argv[])
{
[QApplication](qapplication.html) app(argc, argv);
[QTextCodec](qtextcodec.html).setCodecForTr([QTextCodec](qtextcodec.html).codecForName("eucKR"));
...
}
```
请注意,这不是个好办法选择的编码,该_user_已选择。例如,要转换包含英语字符串韩国的应用程序,所有需要的是英文字符串,通过TR ( )和要加载翻译文件传递。对于国际化的详细信息,请参阅[Internationalization with Qt](index.htm)。
**Warning:**此功能不[reentrant](index.htm#reentrant)。
**See also** [codecForTr](qtextcodec.html#codecForTr)()和[setCodecForCStrings](qtextcodec.html#setCodecForCStrings)( ) 。
```
QString QTextCodec.toUnicode (self, QByteArray)
```
皈依_a_从这个编解码为Unicode的编码,并返回结果的[QString](qstring.html)。
```
QString QTextCodec.toUnicode (self, str chars)
```
将第一_size_从人物_input_从这个编解码为Unicode的编码,并返回结果的[QString](qstring.html)。
该_state_所使用的转换器被更新。
```
QString QTextCodec.toUnicode (self, str in, ConverterState state = None)
```
- PyQt4 中文文档
- PyQt Class Reference
- QAbstractAnimation Class Reference
- QAbstractButton Class Reference
- QAbstractEventDispatcher Class Reference
- QAbstractExtensionFactory Class Reference
- QAbstractExtensionManager Class Reference
- QAbstractFileEngine Class Reference
- QAbstractFileEngineHandler Class Reference
- QAbstractFileEngineIterator Class Reference
- QAbstractFormBuilder Class Reference
- QAbstractGraphicsShapeItem Class Reference
- QAbstractItemDelegate Class Reference
- QAbstractItemModel Class Reference
- QAbstractItemView Class Reference
- QAbstractListModel Class Reference
- QAbstractMessageHandler Class Reference
- QAbstractNetworkCache Class Reference
- QAbstractPrintDialog Class Reference
- QAbstractProxyModel Class Reference
- QAbstractScrollArea Class Reference
- QAbstractSlider Class Reference
- QAbstractSocket Class Reference
- QAbstractSpinBox Class Reference
- QAbstractState Class Reference
- QAbstractTableModel Class Reference
- QAbstractTextDocumentLayout Class Reference
- QAbstractTransition Class Reference
- QAbstractUriResolver Class Reference
- QAbstractVideoBuffer Class Reference
- QAbstractVideoSurface Class Reference
- QAbstractXmlNodeModel Class Reference
- QAbstractXmlReceiver Class Reference
- QAction Class Reference
- QActionEvent Class Reference
- QActionGroup Class Reference
- QAnimationGroup Class Reference
- QApplication Class Reference
- QAssistantClient Class Reference
- QAudio Class Reference
- QAudioDeviceInfo Class Reference
- QAudioFormat Class Reference
- QAudioInput Class Reference
- QAudioOutput Class Reference
- QAuthenticator Class Reference
- QBasicTimer Class Reference
- QBitArray Class Reference
- QBitmap Class Reference
- QBoxLayout Class Reference
- QBrush Class Reference
- QBuffer Class Reference
- QButtonGroup Class Reference
- QByteArray Class Reference
- QByteArrayMatcher Class Reference
- QCalendarWidget Class Reference
- QChar Class Reference
- QCheckBox Class Reference
- QChildEvent Class Reference
- QClipboard Class Reference
- QCloseEvent Class Reference
- QColor Class Reference
- QColorDialog Class Reference
- QColumnView Class Reference
- QComboBox Class Reference
- QCommandLinkButton Class Reference
- QCommonStyle Class Reference
- QCompleter Class Reference
- QConicalGradient Class Reference
- QContextMenuEvent Class Reference
- QCoreApplication Class Reference
- QCryptographicHash Class Reference
- QCursor Class Reference
- QDataStream Class Reference
- QDataWidgetMapper Class Reference
- QDate Class Reference
- QDateEdit Class Reference
- QDateTime Class Reference
- QDateTimeEdit Class Reference
- QDBus Class Reference
- QDBusAbstractAdaptor Class Reference
- QDBusAbstractInterface Class Reference
- QDBusArgument Class Reference
- QDBusConnection Class Reference
- QDBusConnectionInterface Class Reference
- QDBusError Class Reference
- QDBusInterface Class Reference
- QDBusMessage Class Reference
- QDBusObjectPath Class Reference
- QDBusPendingCall Class Reference
- QDBusPendingCallWatcher Class Reference
- QDBusPendingReply Class Reference
- QDBusReply Class Reference
- QDBusServiceWatcher Class Reference
- QDBusSignature Class Reference
- QDBusUnixFileDescriptor Class Reference
- QDBusVariant Class Reference
- QDeclarativeComponent Class Reference
- QDeclarativeContext Class Reference
- QDeclarativeEngine Class Reference
- QDeclarativeError Class Reference
- QDeclarativeExpression Class Reference
- QDeclarativeExtensionPlugin Class Reference
- QDeclarativeImageProvider Class Reference
- QDeclarativeItem Class Reference
- QDeclarativeListReference Class Reference
- QDeclarativeNetworkAccessManagerFactory Class Reference
- QDeclarativeParserStatus Class Reference
- QDeclarativeProperty Class Reference
- QDeclarativePropertyMap Class Reference
- QDeclarativePropertyValueSource Class Reference
- QDeclarativeScriptString Class Reference
- QDeclarativeView Class Reference
- QDesignerActionEditorInterface Class Reference
- QDesignerContainerExtension Class Reference
- QDesignerCustomWidgetCollectionInterface Class Reference
- QDesignerCustomWidgetInterface Class Reference
- QDesignerFormEditorInterface Class Reference
- QDesignerFormWindowCursorInterface Class Reference
- QDesignerFormWindowInterface Class Reference
- QDesignerFormWindowManagerInterface Class Reference
- QDesignerMemberSheetExtension Class Reference
- QDesignerObjectInspectorInterface Class Reference
- QDesignerPropertyEditorInterface Class Reference
- QDesignerPropertySheetExtension Class Reference
- QDesignerTaskMenuExtension Class Reference
- QDesignerWidgetBoxInterface Class Reference
- QDesktopServices Class Reference
- QDesktopWidget Class Reference
- QDial Class Reference
- QDialog Class Reference
- QDialogButtonBox Class Reference
- QDir Class Reference
- QDirIterator Class Reference
- QDirModel Class Reference
- QDockWidget Class Reference
- QDomAttr Class Reference
- QDomCDATASection Class Reference
- QDomCharacterData Class Reference
- QDomComment Class Reference
- QDomDocument Class Reference
- QDomDocumentFragment Class Reference
- QDomDocumentType Class Reference
- QDomElement Class Reference
- QDomEntity Class Reference
- QDomEntityReference Class Reference
- QDomImplementation Class Reference
- QDomNamedNodeMap Class Reference
- QDomNode Class Reference
- QDomNodeList Class Reference
- QDomNotation Class Reference
- QDomProcessingInstruction Class Reference
- QDomText Class Reference
- QDoubleSpinBox Class Reference
- QDoubleValidator Class Reference
- QDrag Class Reference
- QDragEnterEvent Class Reference
- QDragLeaveEvent Class Reference
- QDragMoveEvent Class Reference
- QDropEvent Class Reference
- QDynamicPropertyChangeEvent Class Reference
- QEasingCurve Class Reference
- QElapsedTimer Class Reference
- QErrorMessage Class Reference
- QEvent Class Reference
- QEventLoop Class Reference
- QEventTransition Class Reference
- QExtensionFactory Class Reference
- QExtensionManager Class Reference
- QFile Class Reference
- QFileDialog Class Reference
- QFileIconProvider Class Reference
- QFileInfo Class Reference
- QFileOpenEvent Class Reference
- QFileSystemModel Class Reference
- QFileSystemWatcher Class Reference
- QFinalState Class Reference
- QFocusEvent Class Reference
- QFocusFrame Class Reference
- QFont Class Reference
- QFontComboBox Class Reference
- QFontDatabase Class Reference
- QFontDialog Class Reference
- QFontInfo Class Reference
- QFontMetrics Class Reference
- QFontMetricsF Class Reference
- QFormBuilder Class Reference
- QFormLayout Class Reference
- QFrame Class Reference
- QFSFileEngine Class Reference
- QFtp Class Reference
- QGenericArgument Class Reference
- QGenericReturnArgument Class Reference
- QGesture Class Reference
- QGestureEvent Class Reference
- QGestureRecognizer Class Reference
- QGL Class Reference
- QGLBuffer Class Reference
- QGLColormap Class Reference
- QGLContext Class Reference
- QGLFormat Class Reference
- QGLFramebufferObject Class Reference
- QGLFramebufferObjectFormat Class Reference
- QGLPixelBuffer Class Reference
- QGLShader Class Reference
- QGLShaderProgram Class Reference
- QGLWidget Class Reference
- QGlyphRun Class Reference
- QGradient Class Reference
- QGraphicsAnchor Class Reference
- QGraphicsAnchorLayout Class Reference
- QGraphicsBlurEffect Class Reference
- QGraphicsColorizeEffect Class Reference
- QGraphicsDropShadowEffect Class Reference
- QGraphicsEffect Class Reference
- QGraphicsEllipseItem Class Reference
- QGraphicsGridLayout Class Reference
- QGraphicsItem Class Reference
- QGraphicsItemAnimation Class Reference
- QGraphicsItemGroup Class Reference
- QGraphicsLayout Class Reference
- QGraphicsLayoutItem Class Reference
- QGraphicsLinearLayout Class Reference
- QGraphicsLineItem Class Reference
- QGraphicsObject Class Reference
- QGraphicsOpacityEffect Class Reference
- QGraphicsPathItem Class Reference
- QGraphicsPixmapItem Class Reference
- QGraphicsPolygonItem Class Reference
- QGraphicsProxyWidget Class Reference
- QGraphicsRectItem Class Reference
- QGraphicsRotation Class Reference
- QGraphicsScale Class Reference
- QGraphicsScene Class Reference
- QGraphicsSceneContextMenuEvent Class Reference
- QGraphicsSceneDragDropEvent Class Reference
- QGraphicsSceneEvent Class Reference
- QGraphicsSceneHelpEvent Class Reference
- QGraphicsSceneHoverEvent Class Reference
- QGraphicsSceneMouseEvent Class Reference
- QGraphicsSceneMoveEvent Class Reference
- QGraphicsSceneResizeEvent Class Reference
- QGraphicsSceneWheelEvent Class Reference
- QGraphicsSimpleTextItem Class Reference
- QGraphicsSvgItem Class Reference
- QGraphicsTextItem Class Reference
- QGraphicsTransform Class Reference
- QGraphicsView Class Reference
- QGraphicsWebView Class Reference
- QGraphicsWidget Class Reference
- QGridLayout Class Reference
- QGroupBox Class Reference
- QHBoxLayout Class Reference
- QHeaderView Class Reference
- QHelpContentItem Class Reference
- QHelpContentModel Class Reference
- QHelpContentWidget Class Reference
- QHelpEngine Class Reference
- QHelpEngineCore Class Reference
- QHelpEvent Class Reference
- QHelpIndexModel Class Reference
- QHelpIndexWidget Class Reference
- QHelpSearchEngine Class Reference
- QHelpSearchQuery Class Reference
- QHelpSearchQueryWidget Class Reference
- QHelpSearchResultWidget Class Reference
- QHideEvent Class Reference
- QHistoryState Class Reference
- QHostAddress Class Reference
- QHostInfo Class Reference
- QHoverEvent Class Reference
- QHttp Class Reference
- QHttpHeader Class Reference
- QHttpMultiPart Class Reference
- QHttpPart Class Reference
- QHttpRequestHeader Class Reference
- QHttpResponseHeader Class Reference
- QIcon Class Reference
- QIconDragEvent Class Reference
- QIconEngine Class Reference
- QIconEngineV2 Class Reference
- QIdentityProxyModel Class Reference
- QImage Class Reference
- QImageIOHandler Class Reference
- QImageReader Class Reference
- QImageWriter Class Reference
- QInputContext Class Reference
- QInputContextFactory Class Reference
- QInputDialog Class Reference
- QInputEvent Class Reference
- QInputMethodEvent Class Reference
- QIntValidator Class Reference
- QIODevice Class Reference
- QItemDelegate Class Reference
- QItemEditorCreatorBase Class Reference
- QItemEditorFactory Class Reference
- QItemSelection Class Reference
- QItemSelectionModel Class Reference
- QItemSelectionRange Class Reference
- QKeyEvent Class Reference
- QKeyEventTransition Class Reference
- QKeySequence Class Reference
- QLabel Class Reference
- QLatin1Char Class Reference
- QLatin1String Class Reference
- QLayout Class Reference
- QLayoutItem Class Reference
- QLCDNumber Class Reference
- QLibrary Class Reference
- QLibraryInfo Class Reference
- QLine Class Reference
- QLinearGradient Class Reference
- QLineEdit Class Reference
- QLineF Class Reference
- QListView Class Reference
- QListWidget Class Reference
- QListWidgetItem Class Reference
- QLocale Class Reference
- QLocalServer Class Reference
- QLocalSocket Class Reference
- QMainWindow Class Reference
- QMargins Class Reference
- QMatrix Class Reference
- QMatrix2x2 Class Reference
- QMatrix2x3 Class Reference
- QMatrix2x4 Class Reference
- QMatrix3x2 Class Reference
- QMatrix3x3 Class Reference
- QMatrix3x4 Class Reference
- QMatrix4x2 Class Reference
- QMatrix4x3 Class Reference
- QMatrix4x4 Class Reference
- QMdiArea Class Reference
- QMdiSubWindow Class Reference
- QMenu Class Reference
- QMenuBar Class Reference
- QMessageBox Class Reference
- QMetaClassInfo Class Reference
- QMetaEnum Class Reference
- QMetaMethod Class Reference
- QMetaObject Class Reference
- QMetaProperty Class Reference
- QMetaType Class Reference
- QMimeData Class Reference
- QMimeSource Class Reference
- QModelIndex Class Reference
- QMouseEvent Class Reference
- QMouseEventTransition Class Reference
- QMoveEvent Class Reference
- QMovie Class Reference
- QMutex Class Reference
- QMutexLocker Class Reference
- QNetworkAccessManager Class Reference
- QNetworkAddressEntry Class Reference
- QNetworkCacheMetaData Class Reference
- QNetworkConfiguration Class Reference
- QNetworkConfigurationManager Class Reference
- QNetworkCookie Class Reference
- QNetworkCookieJar Class Reference
- QNetworkDiskCache Class Reference
- QNetworkInterface Class Reference
- QNetworkProxy Class Reference
- QNetworkProxyFactory Class Reference
- QNetworkProxyQuery Class Reference
- QNetworkReply Class Reference
- QNetworkRequest Class Reference
- QNetworkSession Class Reference
- QObject Class Reference
- QObjectCleanupHandler Class Reference
- QPageSetupDialog Class Reference
- QPaintDevice Class Reference
- QPaintEngine Class Reference
- QPaintEngineState Class Reference
- QPainter Class Reference
- QPainterPath Class Reference
- QPainterPathStroker Class Reference
- QPaintEvent Class Reference
- QPalette Class Reference
- QPanGesture Class Reference
- QParallelAnimationGroup Class Reference
- QPauseAnimation Class Reference
- QPen Class Reference
- QPersistentModelIndex Class Reference
- QPicture Class Reference
- QPictureIO Class Reference
- QPinchGesture Class Reference
- QPixmap Class Reference
- QPixmapCache Class Reference
- QPlainTextDocumentLayout Class Reference
- QPlainTextEdit Class Reference
- QPluginLoader Class Reference
- QPoint Class Reference
- QPointF Class Reference
- QPolygon Class Reference
- QPolygonF Class Reference
- QPrintDialog Class Reference
- QPrintEngine Class Reference
- QPrinter Class Reference
- QPrinterInfo Class Reference
- QPrintPreviewDialog Class Reference
- QPrintPreviewWidget Class Reference
- QProcess Class Reference
- QProcessEnvironment Class Reference
- QProgressBar Class Reference
- QProgressDialog Class Reference
- QPropertyAnimation Class Reference
- QProxyModel Class Reference
- QPushButton Class Reference
- QPyDeclarativePropertyValueSource Class Reference
- QPyDesignerContainerExtension Class Reference
- QPyDesignerCustomWidgetCollectionPlugin Class Reference
- QPyDesignerCustomWidgetPlugin Class Reference
- QPyDesignerMemberSheetExtension Class Reference
- QPyDesignerPropertySheetExtension Class Reference
- QPyDesignerTaskMenuExtension Class Reference
- QPyNullVariant Class Reference
- QPyTextObject Class Reference
- QQuaternion Class Reference
- QRadialGradient Class Reference
- QRadioButton Class Reference
- QRawFont Class Reference
- QReadLocker Class Reference
- QReadWriteLock Class Reference
- QRect Class Reference
- QRectF Class Reference
- QRegExp Class Reference
- QRegExpValidator Class Reference
- QRegion Class Reference
- QResizeEvent Class Reference
- QResource Class Reference
- QRubberBand Class Reference
- QRunnable Class Reference
- QScriptClass Class Reference
- QScriptClassPropertyIterator Class Reference
- QScriptContext Class Reference
- QScriptContextInfo Class Reference
- QScriptEngine Class Reference
- QScriptEngineAgent Class Reference
- QScriptEngineDebugger Class Reference
- QScriptString Class Reference
- QScriptSyntaxCheckResult Class Reference
- QScriptValue Class Reference
- QScriptValueIterator Class Reference
- QScrollArea Class Reference
- QScrollBar Class Reference
- QSemaphore Class Reference
- QSequentialAnimationGroup Class Reference
- QSessionManager Class Reference
- QSettings Class Reference
- QSharedMemory Class Reference
- QShortcut Class Reference
- QShortcutEvent Class Reference
- QShowEvent Class Reference
- QSignalMapper Class Reference
- QSignalTransition Class Reference
- QSimpleXmlNodeModel Class Reference
- QSize Class Reference
- QSizeF Class Reference
- QSizeGrip Class Reference
- QSizePolicy Class Reference
- QSlider Class Reference
- QSocketNotifier Class Reference
- QSortFilterProxyModel Class Reference
- QSound Class Reference
- QSourceLocation Class Reference
- QSpacerItem Class Reference
- QSpinBox Class Reference
- QSplashScreen Class Reference
- QSplitter Class Reference
- QSplitterHandle Class Reference
- QSql Class Reference
- QSqlDatabase Class Reference
- QSqlDriver Class Reference
- QSqlDriverCreatorBase Class Reference
- QSqlError Class Reference
- QSqlField Class Reference
- QSqlIndex Class Reference
- QSqlQuery Class Reference
- QSqlQueryModel Class Reference
- QSqlRecord Class Reference
- QSqlRelation Class Reference
- QSqlRelationalDelegate Class Reference
- QSqlRelationalTableModel Class Reference
- QSqlResult Class Reference
- QSqlTableModel Class Reference
- Qt4.7文档翻译:Qt样式单参考,Qt Style Sheets Reference
- QSsl Class Reference
- QSslCertificate Class Reference
- QSslCipher Class Reference
- QSslConfiguration Class Reference
- QSslError Class Reference
- QSslKey Class Reference
- QSslSocket Class Reference
- QStackedLayout Class Reference
- QStackedWidget Class Reference
- QStandardItem Class Reference
- QStandardItemModel Class Reference
- QState Class Reference
- QStateMachine Class Reference
- QStaticText Class Reference
- QStatusBar Class Reference
- QStatusTipEvent Class Reference
- QString Class Reference
- QStringList Class Reference
- QStringListModel Class Reference
- QStringMatcher Class Reference
- QStringRef Class Reference
- QStyle Class Reference
- QStyledItemDelegate Class Reference
- QStyleFactory Class Reference
- QStyleHintReturn Class Reference
- QStyleHintReturnMask Class Reference
- QStyleHintReturnVariant Class Reference
- QStyleOption Class Reference
- QStyleOptionButton Class Reference
- QStyleOptionComboBox Class Reference
- QStyleOptionComplex Class Reference
- QStyleOptionDockWidget Class Reference
- QStyleOptionDockWidgetV2 Class Reference
- QStyleOptionFocusRect Class Reference
- QStyleOptionFrame Class Reference
- QStyleOptionFrameV2 Class Reference
- QStyleOptionFrameV3 Class Reference
- QStyleOptionGraphicsItem Class Reference
- QStyleOptionGroupBox Class Reference
- QStyleOptionHeader Class Reference
- QStyleOptionMenuItem Class Reference
- QStyleOptionProgressBar Class Reference
- QStyleOptionProgressBarV2 Class Reference
- QStyleOptionRubberBand Class Reference
- QStyleOptionSizeGrip Class Reference
- QStyleOptionSlider Class Reference
- QStyleOptionSpinBox Class Reference
- QStyleOptionTab Class Reference
- QStyleOptionTabBarBase Class Reference
- QStyleOptionTabBarBaseV2 Class Reference
- QStyleOptionTabV2 Class Reference
- QStyleOptionTabV3 Class Reference
- QStyleOptionTabWidgetFrame Class Reference
- QStyleOptionTabWidgetFrameV2 Class Reference
- QStyleOptionTitleBar Class Reference
- QStyleOptionToolBar Class Reference
- QStyleOptionToolBox Class Reference
- QStyleOptionToolBoxV2 Class Reference
- QStyleOptionToolButton Class Reference
- QStyleOptionViewItem Class Reference
- QStyleOptionViewItemV2 Class Reference
- QStyleOptionViewItemV3 Class Reference
- QStyleOptionViewItemV4 Class Reference
- QStylePainter Class Reference
- QSvgGenerator Class Reference
- QSvgRenderer Class Reference
- QSvgWidget Class Reference
- QSwipeGesture Class Reference
- QSyntaxHighlighter Class Reference
- QSysInfo Class Reference
- QSystemLocale Class Reference
- QSystemSemaphore Class Reference
- QSystemTrayIcon Class Reference
- Qt Class Reference
- QTabBar Class Reference
- QTabletEvent Class Reference
- QTableView Class Reference
- QTableWidget Class Reference
- QTableWidgetItem Class Reference
- QTableWidgetSelectionRange Class Reference
- QTabWidget Class Reference
- QTapAndHoldGesture Class Reference
- QTapGesture Class Reference
- QTcpServer Class Reference
- QTcpSocket Class Reference
- QTemporaryFile Class Reference
- QTest Class Reference
- QTextBlock Class Reference
- QTextBlockFormat Class Reference
- QTextBlockGroup Class Reference
- QTextBlockUserData Class Reference
- QTextBoundaryFinder Class Reference
- QTextBrowser Class Reference
- QTextCharFormat Class Reference
- QTextCodec Class Reference
- QTextCursor Class Reference
- QTextDecoder Class Reference
- QTextDocument Class Reference
- QTextDocumentFragment Class Reference
- QTextDocumentWriter Class Reference
- QTextEdit Class Reference
- QTextEncoder Class Reference
- QTextFormat Class Reference
- QTextFragment Class Reference
- QTextFrame Class Reference
- QTextFrameFormat Class Reference
- QTextImageFormat Class Reference
- QTextInlineObject Class Reference
- QTextItem Class Reference
- QTextLayout Class Reference
- QTextLength Class Reference
- QTextLine Class Reference
- QTextList Class Reference
- QTextListFormat Class Reference
- QTextObject Class Reference
- QTextObjectInterface Class Reference
- QTextOption Class Reference
- QTextStream Class Reference
- QTextTable Class Reference
- QTextTableCell Class Reference
- QTextTableCellFormat Class Reference
- QTextTableFormat Class Reference
- QThread Class Reference
- QThreadPool Class Reference
- QTime Class Reference
- QTimeEdit Class Reference
- QTimeLine Class Reference
- QTimer Class Reference
- QTimerEvent Class Reference
- QToolBar Class Reference
- QToolBox Class Reference
- QToolButton Class Reference
- QToolTip Class Reference
- QTouchEvent Class Reference
- Reference
- QTransform Class Reference
- QTranslator Class Reference
- QTreeView Class Reference
- QTreeWidget Class Reference
- QTreeWidgetItem Class Reference
- QTreeWidgetItemIterator Class Reference
- QUdpSocket Class Reference
- QUndoCommand Class Reference
- QUndoGroup Class Reference
- QUndoStack Class Reference
- QUndoView Class Reference
- QUrl Class Reference
- QUrlInfo Class Reference
- QUuid Class Reference
- QValidator Class Reference
- QVariant Class Reference
- QVariantAnimation Class Reference
- QVBoxLayout Class Reference
- QVector2D Class Reference
- QVector3D Class Reference
- QVector4D Class Reference
- QVideoFrame Class Reference
- QVideoSurfaceFormat Class Reference
- QWaitCondition Class Reference
- QWebDatabase Class Reference
- QWebElement Class Reference
- QWebElementCollection Class Reference
- QWebFrame Class Reference
- QWebHistory Class Reference
- QWebHistoryInterface Class Reference
- QWebHistoryItem Class Reference
- QWebHitTestResult Class Reference
- QWebInspector Class Reference
- QWebPage Class Reference
- QWebPluginFactory Class Reference
- QWebSecurityOrigin Class Reference
- QWebSettings Class Reference
- QWebView Class Reference
- QWhatsThis Class Reference
- QWhatsThisClickedEvent Class Reference
- QWheelEvent Class Reference
- QWidget Class Reference
- QWidgetAction Class Reference
- QWidgetItem Class Reference
- QWindowStateChangeEvent Class Reference
- QWizard Class Reference
- QWizardPage Class Reference
- QWorkspace Class Reference
- QWriteLocker Class Reference
- QX11EmbedContainer Class Reference
- QX11EmbedWidget Class Reference
- QX11Info Class Reference
- QXmlAttributes Class Reference
- QXmlContentHandler Class Reference
- QXmlDeclHandler Class Reference
- QXmlDefaultHandler Class Reference
- QXmlDTDHandler Class Reference
- QXmlEntityResolver Class Reference
- QXmlErrorHandler Class Reference
- QXmlFormatter Class Reference
- QXmlInputSource Class Reference
- QXmlItem Class Reference
- QXmlLexicalHandler Class Reference
- QXmlLocator Class Reference
- QXmlName Class Reference
- QXmlNamePool Class Reference
- QXmlNamespaceSupport Class Reference
- QXmlNodeModelIndex Class Reference
- QXmlParseException Class Reference
- QXmlQuery Class Reference
- QXmlReader Class Reference
- QXmlResultItems Class Reference
- QXmlSchema Class Reference
- QXmlSchemaValidator Class Reference
- QXmlSerializer Class Reference
- QXmlSimpleReader Class Reference
- QXmlStreamAttribute Class Reference
- QXmlStreamAttributes Class Reference
- QXmlStreamEntityDeclaration Class Reference
- QXmlStreamEntityResolver Class Reference
- QXmlStreamNamespaceDeclaration Class Reference
- QXmlStreamNotationDeclaration Class Reference
- QXmlStreamReader Class Reference
- QXmlStreamWriter Class Reference