# QIcon Class Reference
## [[QtGui](index.htm) module]
该QIcon则类提供了在不同的模式和状态可缩放图标。[More...](#details)
### Types
* `enum Mode { Normal, Disabled, Active, Selected }`
* `enum State { On, Off }`
### Methods
* `__init__ (self)`
* `__init__ (self, QPixmap pixmap)`
* `__init__ (self, QIcon other)`
* `__init__ (self, QString fileName)`
* `__init__ (self, QIconEngine engine)`
* `__init__ (self, QIconEngineV2 engine)`
* `__init__ (self, QVariant variant)`
* `QSize actualSize (self, QSize size, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `addFile (self, QString fileName, QSize size = QSize(), Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `addPixmap (self, QPixmap pixmap, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `list-of-QSize availableSizes (self, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `int cacheKey (self)`
* `bool isDetached (self)`
* `bool isNull (self)`
* `QString name (self)`
* `paint (self, QPainter painter, QRect rect, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `paint (self, QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `QPixmap pixmap (self, QSize size, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `QPixmap pixmap (self, int w, int h, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `QPixmap pixmap (self, int extent, Mode mode = QIcon.Normal, State state = QIcon.Off)`
* `int serialNumber (self)`
* `swap (self, QIcon other)`
### Static Methods
* `QIcon fromTheme (QString name, QIcon fallback = QIcon())`
* `bool hasThemeIcon (QString name)`
* `setThemeName (QString path)`
* `setThemeSearchPaths (QStringList searchpath)`
* `QString themeName ()`
* `QStringList themeSearchPaths ()`
* * *
## Detailed Description
该QIcon则类提供了在不同的模式和状态可缩放图标。
一个QIcon则可以生成一组像素图的它被赋予较小的,更大的,积极的,和残疾人像素图。这样的像素图所使用的Qt控件显示代表一个特定动作的图标。
最简单的使用QIcon则是创建一个从[QPixmap](qpixmap.html)文件或资源,然后使用它,可以让Qt的制定所有必需的图标样式和大小。例如:
```
[QToolButton](qtoolbutton.html) *button = new [QToolButton](qtoolbutton.html);
button->setIcon(QIcon("open.xpm"));
```
要撤消QIcon则,只需在其位置空图标:
```
button->setIcon(QIcon());
```
使用[QImageReader.supportedImageFormats](qimagereader.html#supportedImageFormats)()和[QImageWriter.supportedImageFormats](qimagewriter.html#supportedImageFormats)( )函数来获取支持的文件格式的完整列表。
当您使用像素图(撷取像素图[QSize](qsize.html),模式,状态) ,且没有像素映射为这个给定的大小,模式和状态已经被添加以[addFile](qicon.html#addFile)()或[addPixmap](qicon.html#addPixmap)(),然后QIcon则将会产生1的飞行。该像素图的产生发生在一个[QIconEngineV2](qiconenginev2.html)。默认引擎秤像素映射下来,如果需要,但再也没有起来,并使用当前样式来计算伤残外观。通过使用自定义图标的引擎,您可以自定义生成图标的每一个方面。同[QIconEnginePluginV2](index.htm)它可以注册不同的图标引擎不同的文件后缀,从而有可能为第三方提供额外的图标引擎包括那些使用Qt 。
**Note:**由于Qt 4.2中,支持SVG图标引擎包括在内。
### Making Classes that Use QIcon
如果你自己写的小工具,有一个选项来设置一个小像素映射,可以考虑允许QIcon则到该像素图进行设置。 Qt的类[QToolButton](qtoolbutton.html)是这样的一个部件的一个例子。
提供一种方法来设置QIcon则,当你绘制图标,选择任何像素图是适合你的部件的当前状态。例如:
```
void MyWidget.drawIcon([QPainter](qpainter.html) *painter, [QPoint](qpoint.html) pos)
{
[QPixmap](qpixmap.html) pixmap = icon.pixmap([QSize](qsize.html)(22, 22),
isEnabled() ? QIcon.Normal
: QIcon.Disabled,
isChecked() ? QIcon.On
: QIcon.Off);
painter->drawPixmap(pos, pixmap);
}
```
您可能也使的使用`Active`模式,或许让你的widget`Active`当鼠标悬停在小部件(见[QWidget.enterEvent](qwidget.html#enterEvent)( ) ) ,同时按下鼠标时以待释放,这将激活该功能,或当它是当前选定的项目。如果小部件可以切换,在“开”模式可能被用来绘制不同的图标。
![QIcon](https://img.kancloud.cn/7b/b5/7bb5bceb5eb226554734b687e61dee30_596x312.png)
* * *
## Type Documentation
```
QIcon.Mode
```
该枚举类型描述了其中一个像素图的目的是要使用的模式。当前定义的模式有:
| Constant | Value | Description |
| --- | --- | --- |
| `QIcon.Normal` | `0` | 显示的像素图,当用户不与图标交互的,而是由图标表示的功能是可用的。 |
| `QIcon.Disabled` | `1` | 显示像素映射时由图标表示的功能不可用。 |
| `QIcon.Active` | `2` | 显示像素映射时由图标表示的功能是提供用户与交互图标,例如,移动鼠标,或单击它。 |
| `QIcon.Selected` | `3` | 显示像素映射时由图标表示该项目被选中。 |
```
QIcon.State
```
该枚举描述了其中一个像素图的目的是要使用的状态。该_state_可以是:
| Constant | Value | Description |
| --- | --- | --- |
| `QIcon.Off` | `1` | 显示像素图时,部件是在“关”的状态 |
| `QIcon.On` | `0` | 显示像素图时,部件是在一个“开”状态 |
* * *
## Method Documentation
```
QIcon.__init__ (self)
```
构造一个空的图标。
```
QIcon.__init__ (self, QPixmap pixmap)
```
从构造一个图标_pixmap_。
```
QIcon.__init__ (self, QIcon other)
```
构造的副本_other_。这是非常快的。
```
QIcon.__init__ (self, QString fileName)
```
构造一个图标从文件中给定的_fileName_。该文件将被按需加载。
If _fileName_包含相对路径(例如,文件名只)的相关文件,必须找到相对于运行时的工作目录。
文件名可以是指在磁盘上或对应用程序的嵌入资源之一实际的文件。请参阅[Resource System](index.htm)概述有关如何嵌入在应用程序的可执行映像和其他资源文件的详细信息。
使用[QImageReader.supportedImageFormats](qimagereader.html#supportedImageFormats)()和[QImageWriter.supportedImageFormats](qimagewriter.html#supportedImageFormats)( )函数来获取支持的文件格式的完整列表。
```
QIcon.__init__ (self, QIconEngine engine)
```
该_engine_说法有它的所有权转移给Qt的。
创建一个具有特定图标的图标_engine_。图标采用了发动机的所有权。
```
QIcon.__init__ (self, QIconEngineV2 engine)
```
该_engine_说法有它的所有权转移给Qt的。
创建一个具有特定图标的图标_engine_。图标采用了发动机的所有权。
```
QIcon.__init__ (self, QVariant variant)
```
```
QSize QIcon.actualSize (self, QSize size, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
[
返回图标的实际大小为所请求的_size_,_mode_和_state_。其结果可能会小于要求的,但从来没有较大。
](qsize.html)
[**See also**](qsize.html) [pixmap](qicon.html#pixmap)()和[paint](qicon.html#paint)( ) 。
```
QIcon.addFile (self, QString fileName, QSize size = QSize(), Mode mode = QIcon.Normal, State state = QIcon.Off)
```
增加了一个图像从文件用给定的_fileName_的图标,作为一个专业化的_size_,_mode_和_state_。该文件将被按需加载。注:自定义图标引擎可以自由地忽略额外添加的像素图。
If _fileName_包含相对路径(例如,文件名只)的相关文件,必须找到相对于运行时的工作目录。
文件名可以是指在磁盘上或对应用程序的嵌入资源之一实际的文件。请参阅[Resource System](index.htm)概述有关如何嵌入在应用程序的可执行映像和其他资源文件的详细信息。
使用[QImageReader.supportedImageFormats](qimagereader.html#supportedImageFormats)()和[QImageWriter.supportedImageFormats](qimagewriter.html#supportedImageFormats)( )函数来获取支持的文件格式的完整列表。
注意:当您添加一个非空的文件名到[QIcon](qicon.html),图标变为非空,即使该文件不存在或指向一个损坏的文件。
**See also** [addPixmap](qicon.html#addPixmap)( ) 。
```
QIcon.addPixmap (self, QPixmap pixmap, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
添加_pixmap_的图标,作为一个专业化的_mode_和_state_。
自定义图标的引擎可以自由地忽略额外添加的像素图。
**See also** [addFile](qicon.html#addFile)( ) 。
```
list-of-QSize QIcon.availableSizes (self, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
返回可用图标大小的列表指定_mode_和_state_。
此功能被引入Qt的4.5 。
```
int QIcon.cacheKey (self)
```
返回一个数字,用于标识此内容[QIcon](qicon.html)对象。不同[QIcon](qicon.html)对象可以具有相同的密钥,如果它们指的是相同的内容。
该cacheKey ( )会改变时,该图标是通过改变[addPixmap](qicon.html#addPixmap)()或[addFile](qicon.html#addFile)( ) 。
缓存键是最有用与缓存结合使用。
此功能被引入Qt的4.3 。
**See also** [QPixmap.cacheKey](qpixmap.html#cacheKey)( ) 。
```
QIcon QIcon.fromTheme (QString name, QIcon fallback = QIcon())
```
[](qicon.html)
[返回](qicon.html)[QIcon](qicon.html)对应_name_在当前的图标主题。如果没有这样的图标在当前主题中找到_fallback_返回来代替。
Freedesktop的图标规格及命名规范的最新版本可以在这里获得:
* [http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html](http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html)
* [http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html](http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html)
来从当前的图标主题的图标:
```
[QIcon](qicon.html) undoicon = [QIcon](qicon.html).fromTheme("edit-undo");
```
或者,如果你想提供一个保证回退不支持主题图标的平台,您可以使用第二个参数:
```
[QIcon](qicon.html) undoicon = [QIcon](qicon.html).fromTheme("edit-undo", [QIcon](qicon.html)(":/undo.png"));
```
**Note:**默认情况下,只有X11将支持主题图标。为了使用在Mac和Windows主题图标,你将不得不捆绑一个兼容的主题之一,您[themeSearchPaths](qicon.html#themeSearchPaths)( ),并设置适当的[themeName](qicon.html#themeName)( ) 。
此功能被引入Qt的4.6 。
**See also** [themeName](qicon.html#themeName)( )[setThemeName](qicon.html#setThemeName)()和[themeSearchPaths](qicon.html#themeSearchPaths)( ) 。
```
bool QIcon.hasThemeIcon (QString name)
```
返回True如果有一个图标供_name_在当前的图标主题,否则返回False 。
此功能被引入Qt的4.6 。
**See also** [themeSearchPaths](qicon.html#themeSearchPaths)( )[fromTheme](qicon.html#fromTheme)()和[setThemeName](qicon.html#setThemeName)( ) 。
```
bool QIcon.isDetached (self)
```
```
bool QIcon.isNull (self)
```
返回True如果该图标为空,否则返回False 。
图标是空的,如果它既不具有像素图,也不是一个文件名。
注意:即使是一个非空的图标可能无法建立有效像素映射,如。如果文件不存在或无法读取。
```
QString QIcon.name (self)
```
返回(如果可用)来创建图标,名称。
根据创建图标的方式,它可能有一个相关的名称。这是用于与创建的图标的情况下[fromTheme](qicon.html#fromTheme)()或图标用[QIconEngine](qiconengine.html)支撑[QIconEngineV2.IconNameHook](qiconenginev2.html#IconEngineHook-enum)。
此功能被引入Qt的4.7 。
**See also** [fromTheme](qicon.html#fromTheme)()和[QIconEngine](qiconengine.html)。
```
QIcon.paint (self, QPainter painter, QRect rect, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
使用_painter_绘制图标与指定的_alignment_,需要_mode_和_state_成长方形_rect_。
**See also** [actualSize](qicon.html#actualSize)()和[pixmap](qicon.html#pixmap)( ) 。
```
QIcon.paint (self, QPainter painter, int x, int y, int w, int h, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
这是一个重载函数。
绘制图标进入矩形[QRect](qrect.html)(_x_,_y_,_w_,_h_) 。
```
QPixmap QIcon.pixmap (self, QSize size, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
[
返回一个像素图的要求_size_,_mode_和_state_,生成1如果必要的。像素图可能小于要求的,但从来没有较大。
](qpixmap.html)
[**See also**](qpixmap.html) [setPixmap](index.htm#setPixmap)( )[actualSize](qicon.html#actualSize)()和[paint](qicon.html#paint)( ) 。
```
QPixmap QIcon.pixmap (self, int w, int h, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
[](qpixmap.html)
```
QPixmap QIcon.pixmap (self, int extent, Mode mode = QIcon.Normal, State state = QIcon.Off)
```
[
```
int QIcon.serialNumber (self)
```
```
QIcon.setThemeName (QString path)
```
设置当前的图标主题_name_。
该_name_应该对应于包含描述它的内容的index.theme文件中的themeSearchPath目录名( ) 。
此功能被引入Qt的4.6 。
](qpixmap.html)
[**See also**](qpixmap.html) [themeSearchPaths](qicon.html#themeSearchPaths)()和[themeName](qicon.html#themeName)( ) 。
```
QIcon.setThemeSearchPaths (QStringList searchpath)
```
设置为图标主题的搜索路径_paths_。
此功能被引入Qt的4.6 。
**See also** [themeSearchPaths](qicon.html#themeSearchPaths)( )[fromTheme](qicon.html#fromTheme)()和[setThemeName](qicon.html#setThemeName)( ) 。
```
QIcon.swap (self, QIcon other)
```
交换图标_other_与此图标。这个操作是非常快的,而且永远不会。
此功能被引入Qt的4.8 。
```
QString QIcon.themeName ()
```
返回当前的图标主题的名称。
在X11上,当前图标主题取决于您的桌面设置。在其他平台上它不是默认设置。
此功能被引入Qt的4.6 。
**See also** [setThemeName](qicon.html#setThemeName)( )[themeSearchPaths](qicon.html#themeSearchPaths)( )[fromTheme](qicon.html#fromTheme)()和[hasThemeIcon](qicon.html#hasThemeIcon)( ) 。
```
QStringList QIcon.themeSearchPaths ()
```
返回图标主题的搜索路径。
默认值将取决于平台:
在X11 ,搜索路径将如果有使用XDG_DATA_DIRS环境变量。
默认情况下,所有的平台都会有资源目录`:\icons`作为后备。您可以使用“ RCC项目” ,以从你的图标主题的资源文件。
此功能被引入Qt的4.6 。
**See also** [setThemeSearchPaths](qicon.html#setThemeSearchPaths)( )[fromTheme](qicon.html#fromTheme)()和[setThemeName](qicon.html#setThemeName)( ) 。
- 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