# QUndoStack Class Reference
## [[QtGui](index.htm) module]
该QUndoStack类是一个堆栈的[QUndoCommand](qundocommand.html)对象。[More...](#details)
继承[QObject](qobject.html)。
### Methods
* `__init__ (self, QObject parent = None)`
* `beginMacro (self, QString text)`
* `bool canRedo (self)`
* `bool canUndo (self)`
* `int cleanIndex (self)`
* `clear (self)`
* `QUndoCommand command (self, int index)`
* `int count (self)`
* `QAction createRedoAction (self, QObject parent, QString prefix = QString())`
* `QAction createUndoAction (self, QObject parent, QString prefix = QString())`
* `endMacro (self)`
* `int index (self)`
* `bool isActive (self)`
* `bool isClean (self)`
* `push (self, QUndoCommand cmd)`
* `redo (self)`
* `QString redoText (self)`
* `setActive (self, bool active = True)`
* `setClean (self)`
* `setIndex (self, int idx)`
* `setUndoLimit (self, int limit)`
* `QString text (self, int idx)`
* `undo (self)`
* `int undoLimit (self)`
* `QString undoText (self)`
### Special Methods
* `__len__ (self)`
### Qt Signals
* `void canRedoChanged (bool)`
* `void canUndoChanged (bool)`
* `void cleanChanged (bool)`
* `void indexChanged (int)`
* `void redoTextChanged (const QString&)`
* `void undoTextChanged (const QString&)`
* * *
## Detailed Description
该QUndoStack类是一个堆栈的[QUndoCommand](qundocommand.html)对象。
对于Qt的复原框架的概述,请参阅[overview document](index.htm)。
一个撤消堆栈保持堆栈已应用于文档的命令。
新的命令使用压入堆栈[push](qundostack.html#push)( ) 。命令可以撤消和重做的使用[undo](qundostack.html#undo)()和[redo](qundostack.html#redo)( ) ,或通过触发返回的行动[createUndoAction](qundostack.html#createUndoAction)()和[createRedoAction](qundostack.html#createRedoAction)( ) 。
QUndoStack跟踪的_current_命令。这是将由下一个呼叫要执行的命令[redo](qundostack.html#redo)( ) 。这个命令的指数是由返回[index](qundostack.html#index)( ) 。编辑的对象的状态可以卷向前或向后使用[setIndex](qundostack.html#setIndex)( ) 。如果堆栈最上面的命令已经被重做,[index](qundostack.html#index)( )等于[count](qundostack.html#count)( ) 。
QUndoStack提供支持撤消和重做操作,命令压缩,命令宏和支持的概念_clean state_。
### Undo and Redo Actions
QUndoStack提供方便的撤销和重做[QAction](qaction.html)对象,它们可以被插入到一个菜单或工具栏上。当命令被撤消或重做, QUndoStack更新这些行动的文本属性,以反映什么样的变化,他们将触发。当没有命令可用于撤消或重做的动作也被禁用。这些行动是由返回[QUndoStack.createUndoAction](qundostack.html#createUndoAction)()和[QUndoStack.createRedoAction](qundostack.html#createRedoAction)( ) 。
### Command Compression and Macros
当几个命令可以被压缩成可以撤消一个命令,并在重做一个单一的操作命令压缩是非常有用的。例如,当用户在文本编辑字符时,一个新的命令被创建。这个命令插入字符插入到文档中光标所在的位置。但是,对于用户更加方便,能够撤消或重做整个单词,句子或段落打字。命令压缩使这些单字符命令合并到其中插入或删除文本部分的单一命令。欲了解更多信息,请参见[QUndoCommand.mergeWith](qundocommand.html#mergeWith)()和[push](qundostack.html#push)( ) 。
命令宏命令,所有这一切都是撤消和重做一次过的序列。命令宏被赋予一个命令子命令列表创建的。撤消或重做父的命令会让孩子命令撤消或重做。命令宏可以显式的指定在一个父级要创建[QUndoCommand](qundocommand.html)构造函数,或者使用的方便功能[beginMacro](qundostack.html#beginMacro)()和[endMacro](qundostack.html#endMacro)( ) 。
虽然压缩命令和宏似乎有同样的效果给用户,他们往往有不同的用途中的应用程序。执行的微小变化到一个文件的命令可以有效地压缩,如果没有必要单独地记录它们,并且如果只有较大的变化是相关的用户。然而,对于需要被单独记录的,或者是那些不能被压缩的命令,这是很有用的宏,以提供更方便的用户体验,同时保持每个命令的记录。
### Clean State
QUndoStack支持的清洁状态的概念。当文件被保存到磁盘,堆栈可以使用被标记为干净[setClean](qundostack.html#setClean)( ) 。只要堆栈通过撤销和重做命令返回到这个状态,它发出的信号[cleanChanged](qundostack.html#cleanChanged)( ) 。当堆栈离开干净的状态,这个信号被发射也。这个信号通常是用来启用和禁用应用程序中保存的动作,并更新文档的标题,以反映它包含未保存的更改。
* * *
## Method Documentation
```
QUndoStack.__init__ (self, QObject parent = None)
```
该_parent_的说法,如果不是没有,原因_self_通过Qt的,而不是PyQt的拥有。
构造一个空撤消堆栈与父_parent_。该协议栈将首先在干净的状态。如果_parent_是[QUndoGroup](qundogroup.html)对象,堆栈会自动添加到组中。
**See also** [push](qundostack.html#push)( ) 。
```
QUndoStack.beginMacro (self, QString text)
```
开始一个宏命令组成与给定_text_描述。
由指定的描述一个空的命令_text_被压入堆栈。压入堆栈上的任何后续命令将被追加到空命令的孩子,直到[endMacro](qundostack.html#endMacro)()被调用。
调用beginMacro ()和[endMacro](qundostack.html#endMacro)( )可以嵌套,但每次调用beginMacro ( )必须有匹配的调用[endMacro](qundostack.html#endMacro)( ) 。
虽然宏组成,堆栈被禁用。这意味着:
* [indexChanged](qundostack.html#indexChanged)() and [cleanChanged](qundostack.html#cleanChanged)() are not emitted,
* [canUndo](qundostack.html#canUndo)() and [canRedo](qundostack.html#canRedo)() return false,
* calling [undo](qundostack.html#undo)() or [redo](qundostack.html#redo)() has no effect,
* the undo/redo actions are disabled.
堆栈是可用的,适当的信号被发射时,[endMacro](qundostack.html#endMacro)()被调用用于最外层的宏。
```
stack.beginMacro("insert red text");
stack.push(new InsertText(document, idx, text));
stack.push(new SetColor(document, idx, text.length(), [Qt](qt.html).red));
stack.endMacro(); // indexChanged() is emitted
```
这段代码等同于:
```
[QUndoCommand](qundocommand.html) *insertRed = new [QUndoCommand](qundocommand.html)(); // an empty command
insertRed->setText("insert red text");
new InsertText(document, idx, text, insertRed); // becomes child of insertRed
new SetColor(document, idx, text.length(), [Qt](qt.html).red, insertRed);
stack.push(insertRed);
```
**See also** [endMacro](qundostack.html#endMacro)( ) 。
```
bool QUndoStack.canRedo (self)
```
返回True如果有可用的重做命令,否则返回False 。
如果堆栈为空或者栈顶的命令已经被重做这个函数返回False 。
代名词[index](qundostack.html#index)()==[count](qundostack.html#count)( ) 。
**See also** [index](qundostack.html#index)()和[canUndo](qundostack.html#canUndo)( ) 。
```
bool QUndoStack.canUndo (self)
```
返回True如果有可用撤消命令,否则返回False 。
这个函数返回False,如果堆栈为空,或者如果堆栈底部的命令已被撤销。
代名词[index](qundostack.html#index)()== 0 。
**See also** [index](qundostack.html#index)()和[canRedo](qundostack.html#canRedo)( ) 。
```
int QUndoStack.cleanIndex (self)
```
返回干净的索引。这是该指数在这[setClean](qundostack.html#setClean)( )被调用。
堆栈可能没有一个干净的索引。出现这种情况,如果一个文件被保存,一些命令被撤消,那么一个新的命令被按下。自[push](qundostack.html#push)( )删除所有推新命令之前未完成的指令,堆栈不能返回到干净的状态了。在这种情况下,该函数返回-1 。
**See also** [isClean](qundostack.html#isClean)()和[setClean](qundostack.html#setClean)( ) 。
```
QUndoStack.clear (self)
```
清除命令堆栈删除其上的所有命令,并返回堆栈到干净的状态。
命令都不会撤消或重做;编辑的对象的状态保持不变。
此功能通常用于当该文件的内容被放弃。
**See also** [QUndoStack](qundostack.html#QUndoStack)( ) 。
```
QUndoCommand QUndoStack.command (self, int index)
```
[
在返回一个const指针,指向命令_index_。
这个函数返回一个const指针,因为修改的命令,一旦被压入堆栈和执行的,几乎总是会导致文档的状态的腐败,如果命令是后来撤消或重做。
此功能被引入Qt的4.4 。
](qundocommand.html)
[**See also**](qundocommand.html) [QUndoCommand.child](qundocommand.html#child)( ) 。
```
int QUndoStack.count (self)
```
返回命令的堆栈数。宏命令都算作一个命令。
**See also** [index](qundostack.html#index)( )[setIndex](qundostack.html#setIndex)()和[command](qundostack.html#command)( ) 。
```
QAction QUndoStack.createRedoAction (self, QObject parent, QString prefix = QString())
```
[
该_parent_的说法,如果不是没有,原因_self_通过Qt的,而不是PyQt的拥有。
](qaction.html)
[创建一个重做](qaction.html)[QAction](qaction.html)与给定对象_parent_。
触发此动作将导致调用[redo](qundostack.html#redo)( ) 。这个动作的文本命令,将在下一呼叫重做文本[redo](qundostack.html#redo)( ) ,前缀由指定的_prefix_。如果没有可用的重做命令,这个动作将被禁用。
If _prefix_为空,则默认模板“重做% 1 ”是用来代替前缀。 Qt的4.8之前,前缀“重做”被默认使用。
**See also** [createUndoAction](qundostack.html#createUndoAction)( )[canRedo](qundostack.html#canRedo)()和[QUndoCommand.text](qundocommand.html#text)( ) 。
```
QAction QUndoStack.createUndoAction (self, QObject parent, QString prefix = QString())
```
[
该_parent_的说法,如果不是没有,原因_self_通过Qt的,而不是PyQt的拥有。
](qaction.html)
[创建一个撤消](qaction.html)[QAction](qaction.html)与给定对象_parent_。
触发此动作将导致调用[undo](qundostack.html#undo)( ) 。这个动作的文本将在下一呼叫撤消命令的文本[undo](qundostack.html#undo)( ) ,前缀由指定的_prefix_。如果没有可用的undo命令,这个动作将被禁用。
If _prefix_为空,则使用默认模板,而不是前缀“还原% 1 ” 。 Qt的4.8之前,前缀“撤消”被默认使用。
**See also** [createRedoAction](qundostack.html#createRedoAction)( )[canUndo](qundostack.html#canUndo)()和[QUndoCommand.text](qundocommand.html#text)( ) 。
```
QUndoStack.endMacro (self)
```
结束一个宏命令组成。
如果是这样的最外层的宏在一组嵌套的宏,该功能会发出[indexChanged](qundostack.html#indexChanged)( )一旦整个宏命令。
**See also** [beginMacro](qundostack.html#beginMacro)( ) 。
```
int QUndoStack.index (self)
```
返回当前指令的索引。这是将要到下一个调用执行的命令[redo](qundostack.html#redo)( ) 。它并不总是在堆栈中最上面的命令,因为一些命令可能已被撤消。
**See also** [setIndex](qundostack.html#setIndex)( )[undo](qundostack.html#undo)( )[redo](qundostack.html#redo)()和[count](qundostack.html#count)( ) 。
```
bool QUndoStack.isActive (self)
```
```
bool QUndoStack.isClean (self)
```
如果堆栈是在干净的状态,返回True,否则返回False 。
**See also** [setClean](qundostack.html#setClean)()和[cleanIndex](qundostack.html#cleanIndex)( ) 。
```
QUndoStack.push (self, QUndoCommand cmd)
```
该_cmd_说法有它的所有权转移给Qt的。
Pushes _cmd_在堆栈上或与最近执行的命令将其合并。在任一情况下,执行时_cmd_通过调用其[redo](qundostack.html#redo)()函数。
If _cmd_的ID不是-1,如果ID是相同的最近执行的命令的,[QUndoStack](qundostack.html)将尝试通过调用合并两个命令[QUndoCommand.mergeWith](qundocommand.html#mergeWith)( )在最近执行的命令。如果[QUndoCommand.mergeWith](qundocommand.html#mergeWith)( )返回True ,_cmd_被删除。
在所有其他情况下,_cmd_简直是压入堆栈。
如果命令之前被撤销_cmd_被按下时,电流指令和它上面的所有命令都被删除。故_cmd_总是最终被堆栈中的最顶层。
一旦命令被按下时,堆栈采用它的所有权。有没有getter方法返回的命令,因为它修改它已经被执行后,将几乎总是导致文档的状态的腐败。
**See also** [QUndoCommand.id](qundocommand.html#id)()和[QUndoCommand.mergeWith](qundocommand.html#mergeWith)( ) 。
```
QUndoStack.redo (self)
```
这种方法也是一个Qt槽与C + +的签名`void redo()`。
通过调用重做当前命令[QUndoCommand.redo](qundocommand.html#redo)( ) 。增加当前命令索引。
如果堆栈为空,或者如果堆栈顶部的命令已经被重做,这个函数不执行任何操作。
**See also** [undo](qundostack.html#undo)()和[index](qundostack.html#index)( ) 。
```
QString QUndoStack.redoText (self)
```
返回的命令,将在下一呼叫重做文本[redo](qundostack.html#redo)( ) 。
**See also** [QUndoCommand.actionText](qundocommand.html#actionText)()和[undoText](qundostack.html#undoText)( ) 。
```
QUndoStack.setActive (self, bool active = True)
```
这种方法也是一个Qt槽与C + +的签名`void setActive(bool = 1)`。
```
QUndoStack.setClean (self)
```
这种方法也是一个Qt槽与C + +的签名`void setClean()`。
标记堆栈干净并发出[cleanChanged](qundostack.html#cleanChanged)()如果堆栈是不是已经干净了。
每当通过使用撤销/的堆栈恢复到这个状态重做命令,它发出的信号[cleanChanged](qundostack.html#cleanChanged)( ) 。当堆栈离开干净的状态,这个信号被发射也。
**See also** [isClean](qundostack.html#isClean)()和[cleanIndex](qundostack.html#cleanIndex)( ) 。
```
QUndoStack.setIndex (self, int idx)
```
这种方法也是一个Qt槽与C + +的签名`void setIndex(int)`。
反复调用[undo](qundostack.html#undo)()或[redo](qundostack.html#redo)( ),直到当前命令指数达到_idx_。此功能可用于滚动文档的状态向前向后。[indexChanged](qundostack.html#indexChanged)()被发射一次。
**See also** [index](qundostack.html#index)( )[count](qundostack.html#count)( )[undo](qundostack.html#undo)()和[redo](qundostack.html#redo)( ) 。
```
QUndoStack.setUndoLimit (self, int limit)
```
```
QString QUndoStack.text (self, int idx)
```
在索引返回的命令的文本_idx_。
**See also** [beginMacro](qundostack.html#beginMacro)( ) 。
```
QUndoStack.undo (self)
```
这种方法也是一个Qt槽与C + +的签名`void undo()`。
通过调用撤消当前命令下面的命令[QUndoCommand.undo](qundocommand.html#undo)( ) 。减少当前命令索引。
如果堆栈是空的,或者如果堆栈底部的命令已被撤销,该函数不起作用。
**See also** [redo](qundostack.html#redo)()和[index](qundostack.html#index)( ) 。
```
int QUndoStack.undoLimit (self)
```
```
QString QUndoStack.undoText (self)
```
返回的命令,将在下一呼叫撤消文本[undo](qundostack.html#undo)( ) 。
**See also** [QUndoCommand.actionText](qundocommand.html#actionText)()和[redoText](qundostack.html#redoText)( ) 。
```
QUndoStack.__len__ (self)
```
* * *
## Qt Signal Documentation
```
void canRedoChanged (bool)
```
这是该信号的默认超载。
这个信号被发射时的值[canRedo](qundostack.html#canRedo)()的变化。它是用来启用或禁用通过返回重做动作[createRedoAction](qundostack.html#createRedoAction)( ) 。_canRedo_指定的新值。
```
void canUndoChanged (bool)
```
这是该信号的默认超载。
这个信号被发射时的值[canUndo](qundostack.html#canUndo)()的变化。它是用来启用或禁用通过返回的撤消操作[createUndoAction](qundostack.html#createUndoAction)( ) 。_canUndo_指定的新值。
```
void cleanChanged (bool)
```
这是该信号的默认超载。
每当堆栈进入或离开干净的状态这个信号被发射。如果_clean_诚然,堆栈是在一个干净的状态,否则这个信号表明,它已经离开了干净的状态。
**See also** [isClean](qundostack.html#isClean)()和[setClean](qundostack.html#setClean)( ) 。
```
void indexChanged (int)
```
这是该信号的默认超载。
这个信号被发射时的命令修改文档的状态。这发生在一个命令撤消或重做。当一个宏命令撤消或重做,或[setIndex](qundostack.html#setIndex)()被调用时,这个信号被发射一次。
_idx_指定当前命令,即索引。这将是到下一个调用执行的命令[redo](qundostack.html#redo)( ) 。
**See also** [index](qundostack.html#index)()和[setIndex](qundostack.html#setIndex)( ) 。
```
void redoTextChanged (const QString&)
```
这是该信号的默认超载。
这个信号被发射时的值[redoText](qundostack.html#redoText)()的变化。它是用来更新由返回重做动作的text属性[createRedoAction](qundostack.html#createRedoAction)( ) 。_redoText_指定新文本。
```
void undoTextChanged (const QString&)
```
这是该信号的默认超载。
这个信号被发射时的值[undoText](qundostack.html#undoText)()的变化。它是用来更新返回的撤消操作的text属性[createUndoAction](qundostack.html#createUndoAction)( ) 。_undoText_指定新文本。
- 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