PyQT 实现了大约300 classes and over 5,750 functions,PyQT4对应的QT是最新QT4. 所有的module也是对应的:
- The QtCore module. This contains the core non-GUI classes, including the event loop and Qt's signal and slot mechanism. It also includes platform independent abstractions for Unicode, threads, mapped files, shared memory, regular expressions, and user and application settings.
- The QtGui module. This contains the majority of the GUI classes.
- The QtHelp module. This contains classes for creating and viewing searchable documentation.
- The QtNetwork module. This module contains classes for writing UDP and TCP clients and servers. It includes classes that implement FTP and HTTP clients and support DNS lookups.
- The QtOpenGL module. This module contains classes that enable the use of OpenGL in rendering 3D graphics in PyQt applications.
- The QtScript module. This module contains classes that enable PyQt applications to be scripted using Qt's JavaScript interpreter.
- The QtScriptTools module. This module contains classes that contain additional components (e.g. a debugger) that are used with Qt's JavaScript interpreter.
- The QtSql module. This module contains classes that integrate with SQL databases. It includes editable data models for database tables that can be used with GUI classes. It also includes an implementation of SQLite .
- The QtSvg module. This module contains classes for displaying the contents of SVG files.
- The QtTest module. This module contains functions that enable unit testing of PyQt applications. (PyQt does not implement the complete Qt unit test framework. Instead it assumes that the standard Python unit test framework will be used and implements those functions that simulate a user interacting with a GUI.)
- The QtWebKit module. This module implements a web browser engine based on the WebKit open source browser engine.
- The QtXml module. This module contains classes that implement SAX and DOM interfaces to Qt's XML parser.
- The QtXmlPatterns module. This module contains classes that implement XQuery and XPath support for XML and custom data models.
- The phonon module. This module contains classes that implement a cross-platform multimedia framework that enables the use of audio and video content in PyQt applications.
- The QtMultimedia module. This module provides low-level multimedia functionality. Application developers would normally use the phonon module.
- The QtAssistant module. This module contains classes that allow Qt Assistant to be integrated with a PyQt application to provide online help.
- The QtDesigner module. This module contains classes that allow Qt Designer to be extended using PyQt. See Writing Qt Designer Plugins for a full description of how to do this.
- The QAxContainer module. This module contains classes that allow access to ActiveX controls and COM objects.
- The Qt module. This module consolidates the classes contained in all of the modules described above into a single module. This has the advantage that you don't have to worry about which underlying module contains a particular class. It has the disadvantage that it loads the whole of the Qt framework, thereby increasing the memory footprint of an application. Whether you use this consolidated module, or the individual component modules is down to personal taste.
- The DBus support module is installed as dbus.mainloop.qt . PyQt does not support Qt's native DBus classes (which are very C++ orientated). Instead the dbus.mainloop.qt module provides support for the Qt event loop in the same way that the dbus.mainloop.glib included with the standard dbus-python bindings package provides support for the GLib event loop. The API is described in The DBus Support Module . It is only available for PyQt for X11 and only if the dbus-python v0.80 (or later) bindings package is installed.
- The uic module. This module contains classes for handling the .ui files created by Qt Designer that describe the whole or part of a graphical user interface. It includes classes that load a .ui file and render it directly, and classes that generate Python code from a .ui file for later execution. It is covered in detail in The uic Module .
- The pyqtconfig module is an extention of the SIP build system and is created when PyQt is configured. It encapsulates all the necessary information about your Qt installation and makes it easier to write installation scripts for bindings built on top of PyQt. It is covered in detail in The PyQt Build System .
这里面比较重点的几个是:
QObject 实现了signals & slots的无缝对象沟通机制。
QWidget是GUI模块的基础类,同时也继承了QObject。也就是说我们在程序中所看到的,操作的对象。
其他的module根据自己的需要再学习吧
原文链接:http://software.intel.com/zh-cn/blogs/2010/04/22/meegoqt-pyqt-modules/