Differences between revisions 12 and 13
Revision 12 as of 2008-06-11 09:50:10
Size: 3359
Editor: zhuyj
Comment:
Revision 13 as of 2009-12-25 07:15:50
Size: 3398
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
[[TableOfContents]] <<TableOfContents>>
Line 7: Line 7:
 * [http://www.trolltech.com/ Troll Tech] --The company which makes Qt, a GUI software toolkit/widget-kit. KDE is based on Qt.  * [[http://www.trolltech.com/|Troll Tech]] --The company which makes Qt, a GUI software toolkit/widget-kit. KDE is based on Qt.
Line 13: Line 13:
PyQt是一个Qt UI/XML/SQL C++ 工具包([http://www.trolltech.com/ Troll Tech])的全部Python绑定. PyQt是一个Qt UI/XML/SQL C++ 工具包([[http://www.trolltech.com/|Troll Tech]])的全部Python绑定.
Line 19: Line 19:
For more information [http://wiki.python.org/moin/PyQt PythinInfoWiki] For more information [[http://wiki.python.org/moin/PyQt|PythinInfoWiki]]
Line 21: Line 21:
下载地址: [http://www.riverbankcomputing.co.uk/pyqt/download.php] 下载地址: [[http://www.riverbankcomputing.co.uk/pyqt/download.php]]
Line 31: Line 31:
 * [http://blog.donews.com/limodou/category/62890.aspx Limodou BLOG中关于PyQt的内容]
 * [http://www-128.ibm.com/developerworks/cn/linux/l-qt/index.html Qt 和 PyQt 来自DW]
 * [http://www.commandprompt.com/community/pyqt/book1 GUI Programming with Python: QT Edition] (./) 强烈推荐
 * [http://www.devshed.com/c/a/Python/PyQT-Getting-Started/ PyQT: Getting Started]
 * [http://www.cs.usfca.edu/~afedosov/qttut/ Creating GUI Applications in Python with QT]
 * [:The PyQt4 tutorial:] zhuyj翻译
 * [[http://blog.donews.com/limodou/category/62890.aspx|Limodou BLOG中关于PyQt的内容]]
 * [[http://www-128.ibm.com/developerworks/cn/linux/l-qt/index.html|Qt 和 PyQt 来自DW]]
 * [[http://www.commandprompt.com/community/pyqt/book1|GUI Programming with Python: QT Edition]] (./) 强烈推荐
 * [[http://www.devshed.com/c/a/Python/PyQT-Getting-Started/|PyQT: Getting Started]]
 * [[http://www.cs.usfca.edu/~afedosov/qttut/|Creating GUI Applications in Python with QT]]
 * [[The PyQt4 tutorial]] zhuyj翻译
Line 41: Line 41:
  * Kodos - Python Regular Expressions Debugger [http://kodos.sourceforge.net/].
  * imgSeek - Photo collection manager with content-based search and many other features [http://imgseek.sourceforge.net/].
  * JPA - Jogger Publishing Assistant, Jabber powered weblogging tool [http://jpa.berlios.de/].
  * Tree``Line - a tree-structured PIM [http://www.bellz.org/treeline/].
  * Convert``All - a versatile unit converter [http://www.bellz.org/convertall/].
  * rpCalc - a reverse polish notation calculator [http://www.bellz.org/rpcalc/].
  * Fly``Way - a route planner for pilots [http://www.bellz.org/flyway/].
  * Incubus Data Modeler - Free (GPL) data modeler CASE tool [http://incubus.sf.net]
  * Schevo - a data management system [http://schevo.org]
  * Paythyme - a UK statutory payroll [http://www.paythyme.org.uk]
  * Orange - data mining by visual programming [http://www.ailab.si/orange]
  * Kodos - Python Regular Expressions Debugger [[http://kodos.sourceforge.net/]].
  * imgSeek - Photo collection manager with content-based search and many other features [[http://imgseek.sourceforge.net/]].
  * JPA - Jogger Publishing Assistant, Jabber powered weblogging tool [[http://jpa.berlios.de/]].
  * Tree``Line - a tree-structured PIM [[http://www.bellz.org/treeline/]].
  * Convert``All - a versatile unit converter [[http://www.bellz.org/convertall/]].
  * rpCalc - a reverse polish notation calculator [[http://www.bellz.org/rpcalc/]].
  * Fly``Way - a route planner for pilots [[http://www.bellz.org/flyway/]].
  * Incubus Data Modeler - Free (GPL) data modeler CASE tool [[http://incubus.sf.net]]
  * Schevo - a data management system [[http://schevo.org]]
  * Paythyme - a UK statutory payroll [[http://www.paythyme.org.uk]]
  * Orange - data mining by visual programming [[http://www.ailab.si/orange]]
Line 66: Line 66:
 * 由 Self:andelf (Feather.And.ELF)创建,你可以通过mail与我交流关于PyQt的问题  * 由 [[andelf]] (Feather.And.ELF)创建,你可以通过mail与我交流关于PyQt的问题

PyQt

什么是Qt

  • Troll Tech --The company which makes Qt, a GUI software toolkit/widget-kit. KDE is based on Qt.

  • Qt是一个完整的C++应用程序开发框架。它包含一个类库,和用于跨平台开发及国际化的工具。Qt API在所有支持的平台上都是相同的,Qt工具在这些平台上的使用方式也一致, 因而Qt应用的开发和部署与平台无关。

关于PyQt

PyQt是一个Qt UI/XML/SQL C++ 工具包(Troll Tech)的全部Python绑定.

[PyQt/AbtPhilThompson] 是一篇简单介绍 PyQt 以及其作者 Phil Thompson 的文章.

PyQt提供了大约300个类以及其中不下5750个函数/方法.

For more information PythinInfoWiki

下载地址: http://www.riverbankcomputing.co.uk/pyqt/download.php

最新版本 PyQt v4.1 (基于 Qt v4.2.1 )

/!\ 需先安装 Qt

/!\ 现在所能见到的资料大部分都是 PyQt3.x 的,而且 PyQt3PyQt4 代码有一些不同,比如在导入,运行上. 所以关于安装选择上,自己挑选适合自己的版本.

一些资料

PyQt应用

Addition

  • 优点:
    • 有强大的Qt Designer支持,可以很方便地设计出布局合理的程序.
    • 支持GUI界面的主题,如XP,MAC等等
    • 可以使用C++做扩展
    • ......
  • 缺点:
    • 中文资料很少,大家可以试着在 google 上搜下. E文资料则大部分为PyQt3.x版,与当前PyQt4的程序有较大差异

    • Win32下运行不方便,需要Qt库支持,不适合用py2exe发布
    • ......

(!) 可以在PyQt自带的Demo里找到很多例子,靠看Demo学习也是一种不错的方法.

关于

  • andelf (Feather.And.ELF)创建,你可以通过mail与我交流关于PyQt的问题

PyQt (last edited 2010-07-27 02:34:17 by zhuyj)