Archive:Development/Tutorials/Qt4 Ruby Tutorial (zh CN): Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
''作者:''[mailto:[email protected] Darshan Ishaya, [email protected]] | ''作者:''[mailto:[email protected] Darshan Ishaya, [email protected]] | ||
== Ruby | == Ruby Qt®4 教学 == | ||
本教学介绍使用 [http://qt.nokia.com/products/qt Qt]、[http://www.ruby-lang.org Ruby] 和 [http://rubyforge.org/projects/korundum/ qt4-qtruby] 的 GUI 程序设计。这不过是 Nokia 优秀的[http://doc.qt.nokia.com/4.2/tutorial.html Qt 教学]简单移植。 | 本教学介绍使用 [http://qt.nokia.com/products/qt Qt]、[http://www.ruby-lang.org Ruby] 和 [http://rubyforge.org/projects/korundum/ qt4-qtruby] 的 GUI 程序设计。这不过是 Nokia 优秀的[http://doc.qt.nokia.com/4.2/tutorial.html Qt 教学]简单移植。 | ||
Line 17: | Line 17: | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 01|Hello World!]] | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 01|Hello World!]] | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 2|Calling it Quits]] | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 2|Calling it Quits]] | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 3|Family Values]] | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 3|Family Values]] | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 04|Let There Be Widgets]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 05|Building Blocks]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 06|Building Blocks Galore!]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 07|One Thing Leads to Another]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 08|Preparing for Battle]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 09|With Cannon You Can]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 10|Smooth as Silk]] (unfinished) | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 10|Smooth as Silk]] (unfinished) | ||
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 11|Giving It a Shot]] (unfinished) | #[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 11|Giving It a Shot]] (unfinished) |
Revision as of 17:28, 29 December 2009
Development/Tutorials/Qt4 Ruby Tutorial
Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
作者:Darshan Ishaya, [email protected]
Ruby Qt®4 教学
本教学介绍使用 Qt、Ruby 和 qt4-qtruby 的 GUI 程序设计。这不过是 Nokia 优秀的Qt 教学简单移植。 因此,本段后的大多数文字直接来自他们的教学。我有必要修改,使之适合 Ruby 绑定。并重新安排或改写一些部分,使他们(我希望)更清晰点。
本教学并不包括一切,其重点放在传授 GUI 程序的设计哲学,和必要的 Qt 功能介绍。一些较为一般的特色可能不会在本教学中被提及。
第一章由最小的「Hello World」程序开头,并于接下来的每一章介绍新的概念。到第14章,第1章的「Hello World」程序将变成448行的游戏。
如果您对 Qt 是完全陌生的,您可能需要阅读如何学习 Qt。请记住,和大多数 Qt 相关的文件一样,这是非常 C++ 导向的。
目录
- Hello World!
- Calling it Quits
- Family Values
- Let There Be Widgets (unfinished)
- Building Blocks (unfinished)
- Building Blocks Galore! (unfinished)
- One Thing Leads to Another (unfinished)
- Preparing for Battle (unfinished)
- With Cannon You Can (unfinished)
- Smooth as Silk (unfinished)
- Giving It a Shot (unfinished)
- Hanging in the Air the Way Bricks Don't (unfinished)
- Game Over (unfinished)
- Facing the Wall (unfinished)
这个小游戏看起来并没有那么像一个时髦的 GUI 应用程序。虽然它使用了一些 GUI 技术,不过在你开始使用它之后,我们建议你试试这个 Application 范例,它提供了一个拥有选单、工具栏、一个状态栏等等的小型 GUI 应用程序。这里有不少很有教育意义的范例。他们都是用 C++ 写成的,但很容易跟进。因为这一点,证明他们是 Qt 的使用说明,而不是 C++ 功能。
Right now this tutorial is hosted on my site. I am going to be bringing it over here over the next week or so.
You can currently access this tutorial at the following address:
http://www.darshancomputing.com/qt4-qtruby-tutorial/
until it is fully transferred over to this wiki.